Package net.sf.saxon.om
Class IgnorableSpaceStrippingRule
- java.lang.Object
-
- net.sf.saxon.om.IgnorableSpaceStrippingRule
-
- All Implemented Interfaces:
SpaceStrippingRule
public class IgnorableSpaceStrippingRule extends java.lang.Object implements 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 Constructor Description IgnorableSpaceStrippingRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
export(ExpressionPresenter presenter)
Export this rule as part of an exported stylesheetstatic IgnorableSpaceStrippingRule
getInstance()
int
isSpacePreserving(NodeName name, SchemaType schemaType)
Decide whether an element is in the set of white-space preserving element typesProxyReceiver
makeStripper(Receiver next)
Make a filter to implement these space-stripping rules, or null if no filtering is necessary
-
-
-
Method Detail
-
getInstance
public static IgnorableSpaceStrippingRule getInstance()
-
isSpacePreserving
public int isSpacePreserving(NodeName name, SchemaType schemaType)
Decide whether an element is in the set of white-space preserving element types- Specified by:
isSpacePreserving
in 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
public ProxyReceiver makeStripper(Receiver next)
Make a filter to implement these space-stripping rules, or null if no filtering is necessary- Specified by:
makeStripper
in interfaceSpaceStrippingRule
- Parameters:
next
-- Returns:
- a filter in the form of a ProxyReceiver, or null
-
export
public void export(ExpressionPresenter presenter)
Export this rule as part of an exported stylesheet- Specified by:
export
in interfaceSpaceStrippingRule
- Parameters:
presenter
- the output handler
-
-