xsl:preserve-space¶
Used at the top level of the stylesheet to define elements in the source document for which whitespace nodes are significant and should be retained.
Available in XSLT 1.0 and later versions. Available in all Saxon editions.
- Category: declaration
- Content: none
- Permitted parent elements:
xsl:package
;xsl:stylesheet
;xsl:transform
Attributes¶
elements
- tokens
- Defines a space-separated list of element names. The value "
*
" may be used to mean "all elements"; in this case any elements where whitespace is not to be preserved may be indicated by anxsl:strip-space
element.