public class StylesheetSpaceStrippingRule extends java.lang.Object implements SpaceStrippingRule
Constructor and Description |
---|
StylesheetSpaceStrippingRule(NamePool pool) |
Modifier and Type | Method and Description |
---|---|
void |
export(ExpressionPresenter presenter)
Export this rule as part of an exported stylesheet
|
int |
isSpacePreserving(NodeName elementName,
SchemaType schemaType)
Decide whether an element is in the set of white-space preserving element types
|
ProxyReceiver |
makeStripper(Receiver next)
Make a filter to implement these space-stripping rules, or null if no filtering
is necessary
|
public StylesheetSpaceStrippingRule(NamePool pool)
public int isSpacePreserving(NodeName elementName, SchemaType schemaType)
isSpacePreserving
in interface SpaceStrippingRule
elementName
- identifies the element being testedschemaType
- not usedStripper.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, and Stripper.STRIP_DEFAULT
otherwisepublic ProxyReceiver makeStripper(Receiver next)
makeStripper
in interface SpaceStrippingRule
next
- the Receiver that is to receiver the filtered event streampublic void export(ExpressionPresenter presenter)
export
in interface SpaceStrippingRule
presenter
- the output handlerCopyright (c) 2004-2020 Saxonica Limited. All rights reserved.