Name
xsl:strip-space
Synopsis
<xsl:strip-space
elements="QualifiedName_1 QualifiedName_2...
" />
The top-level xsl:strip-space
element specifies which elements in the source document have
whitespace stripped from them before they are transformed.
Whitespace stripping removes all text nodes that contain only
whitespace (the space character, the tab character, the carriage
return, and the line feed). By default, whitespace is not stripped
from an element unless its name is listed in the elements
attribute of an xsl:strip-space
element.
This element does not trim leading or trailing whitespace, or otherwise normalize whitespace in elements that contain even a single nonwhitespace character.
Attribute
elements
, requiredA whitespace-separated list of elements in which space should be stripped. Besides element names, the
elements
attribute can contain an asterisk to indicate that whitespace should be stripped in all elements or contain a namespace prefix followed by a colon and asterisk to indicate that whitespace should be stripped in all elements in the given namespace.
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.