could please someone tell me why ‘disable-output-escaping’ attribute takes no effect in the following piece of XSL template?
<INPUT type="text">
<xsl:attribute name="value" >
<xsl:value-of select="$query" disable-output-escaping = "yes" />
</xsl:attribute>
</INPUT>
I would like to see an unescaped value within the ‘input’ element.
Thanks in advance
D-O-E has effect only for text nodes — not for attributes.
If the output method is
xml, then an XSLT processor must output a well-formed XML document and then it is mandatory to escape special characters in any attribute value.You may try specifying:
However, bear in mind that D-O-E is not a mandatory feature of XSLT at all and some XSLT processors don’t implement D-O-E. Therefore, you may need to enter the wanted value manually (and maybe use the “text” output method).