Package net.sf.saxon.om
Class AllElementsSpaceStrippingRule
java.lang.Object
net.sf.saxon.om.AllElementsSpaceStrippingRule
- All Implemented Interfaces:
SpaceStrippingRule
A whitespace stripping rule that strips all elements unless xml:space indicates that whitespace
should be preserved.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
isSpacePreserving
(NodeName fingerprint) Decide whether an element is in the set of white-space preserving element types
-
Constructor Details
-
AllElementsSpaceStrippingRule
public AllElementsSpaceStrippingRule()
-
-
Method Details
-
getInstance
-
isSpacePreserving
Decide whether an element is in the set of white-space preserving element types- Specified by:
isSpacePreserving
in interfaceSpaceStrippingRule
- Parameters:
fingerprint
- identifies the element being tested- Returns:
- STRIP_DEFAULT: strip spaces unless xml:space tells you not to.
-