public interface SpaceStrippingRule
Modifier and Type | Method and Description |
---|---|
void |
export(ExpressionPresenter presenter)
Export this rule as part of an exported stylesheet
|
int |
isSpacePreserving(NodeName nodeName,
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
|
int isSpacePreserving(NodeName nodeName, SchemaType schemaType) throws XPathException
nodeName
- Identifies the name of the element whose whitespace is (or is not) to
be preservedschemaType
- The type annotation of the element whose whitespace is (or is not) to
be preservedStripper.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
otherwiseXPathException
- if the rules are ambiguous and ambiguities are to be
reported as errorsProxyReceiver makeStripper(Receiver next)
next
- the Receiver that is to receiver the filtered event streamvoid export(ExpressionPresenter presenter) throws XPathException
presenter
- the output handlerXPathException
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.