Package net.sf.saxon.om
Class IgnorableSpaceStrippingRule
java.lang.Object
net.sf.saxon.om.IgnorableSpaceStrippingRule
- All Implemented Interfaces:
SpaceStrippingRule
A whitespace stripping rule that strips whitespace text node children from all elements having an element-only content
model, regardless of the value of the xml:space attribute
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexport(ExpressionPresenter presenter) Export this rule as part of an exported stylesheetstatic IgnorableSpaceStrippingRuleintisSpacePreserving(NodeName name, SchemaType schemaType) Decide whether an element is in the set of white-space preserving element typesmakeStripper(Receiver next) Make a filter to implement these space-stripping rules, or null if no filtering is necessary
-
Constructor Details
-
IgnorableSpaceStrippingRule
public IgnorableSpaceStrippingRule()
-
-
Method Details
-
getInstance
-
isSpacePreserving
Decide whether an element is in the set of white-space preserving element types- Specified by:
isSpacePreservingin interfaceSpaceStrippingRule- Parameters:
name- identifies the name of the element being testedschemaType- the type annotation of the element being tested- Returns:
- STRIP_DEFAULT: strip spaces unless xml:space tells you not to.
-
makeStripper
Make a filter to implement these space-stripping rules, or null if no filtering is necessary- Specified by:
makeStripperin interfaceSpaceStrippingRule- Parameters:
next- the Receiver that is to receive the filtered event stream- Returns:
- a filter in the form of a ProxyReceiver, or null
-
export
Export this rule as part of an exported stylesheet- Specified by:
exportin interfaceSpaceStrippingRule- Parameters:
presenter- the output handler
-