Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

disable-output-escaping in xsl:attribute ... Interesting problem!!!

843834Oct 13 2001 — edited Oct 15 2001
This 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 12 2001
Added on Oct 13 2001
2 comments
196 views