Microsoft XML SDK 2.6 - XSLT Reference

xsl:strip-space Element

Strips whitespace in a document.

<xsl:strip-space
  elements = tokens />

Attributes

elements
Required. White-space separated list of name tests.

Element Information

Number of occurrences Unlimited
Parent elements xsl:stylesheet, xsl:transform
Child elements (No child elements)

Remarks

<xsl:strip-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:

See Also

xsl:preserve-space