|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: HTML input tag problem and Unicode
> Can somebody tell me how to solve this? > > when i load data from DB and to redisplay in the input > tag for example like this : > > <input type="text" name="input"> > <xsl:attribute name="value"> > <xsl:value-of select="input_value"/> > </xsl:attribute> > </input> > > input_value from xml file > i use encoding ISO8859-1. > it keeps on display &#...; characters for the signed character > if i use text area tag and i use > disable-output-escaping="yes" characteristics > i can remove these &# .. characters!!! > > but for <input> it does not work??? If you want vietnamese characters to be converted from character entities you should change the encoding to one that supports the characters. e.g. utf-8. This can be done with <xsl:output method="html" encoding="utf-8"/> If disable-output-escaping actually converted the character from character entities then there is a bug in your xslt processor. from the xslt 1.0 specification. http://www.w3.org/TR/xslt#disable-output-escaping If output escaping is disabled for a character that is not representable in the encoding that the XSLT processor is using for output, then the XSLT processor may signal an error; if it does not signal an error, it must recover by not disabling output escaping. I suspect that you are looking at the page in a web browser that doesn't support character entities very well and so it is not displaying character entities properly in attributes but is in text nodes. Edward Middleton XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








