xsl-list
[Top] [All Lists]

Re: Encoding attribute

2004-01-30 06:38:00
Fran wrote:

I found the euro character in ISO-8859-15 so I change my XML and XSL to this
encoding. I have now my xsl with entity references:
  <?xml version="1.0" encoding="ISO-8859-15"?>
   <!DOCTYPE xsl:stylesheet [<!ENTITY euro "&#164;">]>
   <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
   <xsl:output method="html"/>

I put <xsl:text>&euro;</xsl:text> but it writes another character....

Any suggestions please?

Thanks a lot!!
Frank

1) If you use character refs, the declared encoding is irrelevant.

2) Character refs always use Unicode code points, thus you need &#x20ac;

Julian

--
<green/>bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760

XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>