Package net.sf.saxon.om
Class StylesheetSpaceStrippingRule
- java.lang.Object
-
- net.sf.saxon.om.StylesheetSpaceStrippingRule
-
- All Implemented Interfaces:
SpaceStrippingRule
public class StylesheetSpaceStrippingRule extends java.lang.Object implements SpaceStrippingRule
A whitespace stripping rule that strips whitespace according to the rules defined for XSLT stylesheets
-
-
Constructor Summary
Constructors Constructor Description StylesheetSpaceStrippingRule(NamePool pool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
export(ExpressionPresenter presenter)
Export this rule as part of an exported stylesheetint
isSpacePreserving(NodeName elementName, 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
-
-
-
Constructor Detail
-
StylesheetSpaceStrippingRule
public StylesheetSpaceStrippingRule(NamePool pool)
-
-
Method Detail
-
isSpacePreserving
public int isSpacePreserving(NodeName elementName, SchemaType schemaType)
Decide whether an element is in the set of white-space preserving element types- Specified by:
isSpacePreserving
in interfaceSpaceStrippingRule
- Parameters:
elementName
- identifies the element being testedschemaType
- not used- Returns:
Stripper.ALWAYS_PRESERVE
if the element is in the set of white-space preserving element types,Stripper.ALWAYS_STRIP
if the element is to be stripped regardless of the xml:space setting, andStripper.STRIP_DEFAULT
otherwise
-
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
- the Receiver that is to receive the filtered event stream- 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
-
-