Preverves whitespace in a document.
<xsl:strip-space elements = tokens />
Number of occurrences | Unlimited |
Parent elements | xsl:stylesheet, xsl:transform |
Child elements | (No child elements) |
<xsl:preserve-space> is a whitespace preserving element and has an elements attribute whose value is a whitespace-separated list of name tests. Initially, the set of whitespace-preserving element names contains all element names. If an element name matches a name test in an <xsl:strip-space> element, then it is removed from the set of whitespace-preserving element names. If an element name matches a name test in an <xsl:preserve-space> element, then it is added to the set of whitespace-preserving element names. An element matches a name test if and only if the name test would be true for the element as an XPath node test. The applicable match for a particular element name is determined as follows: