Package net.sf.saxon.s9api
Class WhitespaceStrippingPolicy
java.lang.Object
net.sf.saxon.s9api.WhitespaceStrippingPolicy
WhitespaceStrippingPolicy is class defining the possible policies for handling
whitespace text nodes in a source document.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WhitespaceStrippingPolicy
The value ALL indicates that all whitespace-only text nodes are discarded.static final WhitespaceStrippingPolicy
The value IGNORABLE indicates that whitespace text nodes in element-only content are discarded.static final WhitespaceStrippingPolicy
The value NONE indicates that all whitespace text nodes are retainedstatic final WhitespaceStrippingPolicy
UNSPECIFIED means that no other value has been specifically requested. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
WhitespaceStrippingPolicy
(Executable executable) Create a WhitespaceStrippingPolicy based on the xsl:strip-space and xsl:preserve-space declarations in a given XSLT stylesheet -
Method Summary
-
Field Details
-
NONE
The value NONE indicates that all whitespace text nodes are retained -
IGNORABLE
The value IGNORABLE indicates that whitespace text nodes in element-only content are discarded. Content is element-only if it is defined by a schema or DTD definition that does not allow mixed or PCDATA content. -
ALL
The value ALL indicates that all whitespace-only text nodes are discarded. -
UNSPECIFIED
UNSPECIFIED means that no other value has been specifically requested.
-
-
Constructor Details
-
WhitespaceStrippingPolicy
Create a WhitespaceStrippingPolicy based on the xsl:strip-space and xsl:preserve-space declarations in a given XSLT stylesheet- Parameters:
executable
- the stylesheet containing the xsl:strip-space and xsl:preserve-space declarations
-
-
Method Details
-
ordinal
protected int ordinal() -
makeStripper
-