Implementer Page: res.no-indent-elements.html Attribute Package: res.no-indent-elements.zip Attribute Syntax<xsl:output method="res:xml" indent="yes"
res:no-indent-elements="[tokens]"/> When using the xml output method and
indent="yes" , an XSLT processor can add whitespace to the
serialized output tree in order to format it nicely. The
res:no-indent-elements attribute selectively disables this
indenting behavior, to protect branches of the tree that would be
sensitive to adding additional whitespace. For the purposes of this description, consider the xsl
namespace prefix to be bound to the
http://www.w3.org/1999/XSL/Transform namespace URI. When the
xsl:output element uses the res:xml method and
indent="yes" , then the res:no-indent-elements
attribute should be interpreted as a whitespace-separated list of NameTests. The
processor method may output whitespace in the same fashion as the built-in
xml method unless the output values are descendants of
an element matching one of the NameTests in the
res:no-indent-elements attribute, in which case the processor
must not output extra whitespace. If the xsl:output element
does not use both the res:xml method and
indent="yes" , then this attribute has no effect. |