disable-output-escaping in xsl:attribute ... Interesting problem!!!
843834Oct 13 2001 — edited Oct 15 2001This is really a pretty interesting problem ...
I have to display japanese characters onto the browser which are rendered using XML/XSL on the server-side. The japanese charcters are stored in the XML using CDATA & while displaying I reset the disable the output escaping (using <xsl:value disable-output-escaping="yes">). This works fine if the value is to be displayed as a normal text but I can't get to display it in a textbox because there I am embedding it in <xsl:attribute & the specs says that you can't use disable ourput-escaping in xsl:attribute ...
The code I am using is similar to what's there below:
....
<input type="text" name="username" >
<xsl:attribute name="value">
<xsl:value-of select="/someparenttag/somechildtag" disable-output-escaping="yes"/>
</xsl:attribute>
</input>
...
Is there any work around to this so that I can display japanese characters in a textbox.
I am using Xalan 2.2 & weblogic 6.1.