Package net.sf.saxon.om
Interface SpaceStrippingRule
-
- All Known Implementing Classes:
AllElementsSpaceStrippingRule,NoElementsSpaceStrippingRule,SelectedElementsSpaceStrippingRule,StylesheetSpaceStrippingRule
public interface SpaceStrippingRuleInterface for deciding whether a particular element is to have whitespace text nodes stripped
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byteisSpacePreserving(NodeName nodeName)Decide whether an element is in the set of white-space preserving element types
-
-
-
Method Detail
-
isSpacePreserving
byte isSpacePreserving(NodeName nodeName) throws XPathException
Decide whether an element is in the set of white-space preserving element types- Parameters:
nodeName- Identifies the name of the element whose whitespace is to be preserved- 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- Throws:
XPathException- if the rules are ambiguous and ambiguities are to be reported as errors
-
-