Package net.sf.saxon.om
Class NoElementsSpaceStrippingRule
- java.lang.Object
-
- net.sf.saxon.om.NoElementsSpaceStrippingRule
-
- All Implemented Interfaces:
SpaceStrippingRule
public class NoElementsSpaceStrippingRule extends java.lang.Object implements SpaceStrippingRule
A whitespace stripping rule that strips all elements unless xml:space indicates that whitespace should be preserved.
-
-
Constructor Summary
Constructors Constructor Description NoElementsSpaceStrippingRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static NoElementsSpaceStrippingRulegetInstance()byteisSpacePreserving(NodeName fingerprint)Decide whether an element is in the set of white-space preserving element types
-
-
-
Method Detail
-
getInstance
public static NoElementsSpaceStrippingRule getInstance()
-
isSpacePreserving
public byte isSpacePreserving(NodeName fingerprint)
Decide whether an element is in the set of white-space preserving element types- Specified by:
isSpacePreservingin interfaceSpaceStrippingRule- Parameters:
fingerprint- identifies the element being tested- Returns:
- STRIP_DEFAULT: strip spaces unless xml:space tells you not to.
-
-