J
John Gordon
My XSLT files have many occurrences of this general pattern:
<a>
<xsl:attribute name="href">
<xsl:value-of select="xyz" />
</xsl:attribute>
</a>
When I execute an XSL transform, the resulting HTML looks like this:
<a href="xyz%0A%09%09">
.... because *everything* between the opening and closing attribute tags
is being included, even the carriage return after the opening attribute
tag and the tabs before the value-of tag.
Is there a way to avoid this behavior? I tried adding
<xsl:strip-space elements="*"/> at the top of the file, but it appeared to
have no effect.
<a>
<xsl:attribute name="href">
<xsl:value-of select="xyz" />
</xsl:attribute>
</a>
When I execute an XSL transform, the resulting HTML looks like this:
<a href="xyz%0A%09%09">
.... because *everything* between the opening and closing attribute tags
is being included, even the carriage return after the opening attribute
tag and the tabs before the value-of tag.
Is there a way to avoid this behavior? I tried adding
<xsl:strip-space elements="*"/> at the top of the file, but it appeared to
have no effect.