[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: HTML input tag problem and Unicode

Subject: RE: HTML input tag problem and Unicode
From: Edward.Middleton@xxxxxxxxxxx
Date: Mon, 10 Mar 2003 18:43:17 +0900
html input tag disabled
> 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.
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

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.