strip-space elements="*" : strip space « XSLT stylesheet « XML Tutorial - elements space strip xsl


xsl:strip-space elements space strip xsl

The xsl:strip-space> element is used to define the elements for which white space should be removed. Note: Preserving white space is the default setting.

The XSLT spec gives us two ways of dealing with whitespace nodes. We can use the xsl:preserve-space> and xsl:strip-space> nodes to keep or delete.

The xsl:strip-space element defines the elements in the source document for which whitespace should be removed.