Package net.sf.saxon.om
Class StylesheetSpaceStrippingRule
java.lang.Object
net.sf.saxon.om.StylesheetSpaceStrippingRule
- All Implemented Interfaces:
SpaceStrippingRule
A whitespace stripping rule that strips whitespace according to the rules defined for XSLT stylesheets
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteisSpacePreserving(NodeName elementName) Decide whether an element is in the set of white-space preserving element types
-
Constructor Details
-
StylesheetSpaceStrippingRule
-
-
Method Details
-
isSpacePreserving
Decide whether an element is in the set of white-space preserving element types- Specified by:
isSpacePreservingin interfaceSpaceStrippingRule- Parameters:
elementName- identifies the element being tested- Returns:
Stripper.ALWAYS_PRESERVEif the element is in the set of white-space preserving element types,Stripper.ALWAYS_STRIPif the element is to be stripped regardless of the xml:space setting, andStripper.STRIP_DEFAULTotherwise
-