[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Encoding attribute

Subject: Re: [xsl] Encoding attribute
From: Julian Reschke <julian.reschke@xxxxxx>
Date: Fri, 30 Jan 2004 14:38:00 +0100

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"
   <xsl:output method="html"/>

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

Any suggestions please?

Thanks a lot!!

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

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


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

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

Current Thread