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

Re: [xsl] Character substitution

Subject: Re: [xsl] Character substitution
From: Jim Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Mon, 10 Jan 2005 11:42:03 -0500

David Carlisle wrote:
how is the euro character represented in your document ?

It never matters how the source document is encoded, all such matters
are resolved by the XML parser before XSLT starts.

yes, yes

Numeric character references are not entity references (they refer to
characters not entities) the number for Euro is 8364 not 128.

xml <?xml version="1.0"?> <test>&#128;</test>

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="ISO-8859-1"/>
<xsl:template match="/">
<xsl:copy-of select="test"/>

I get a nice little euro symbol


......though only with the Windows-1252 and ISO-8859-1 encodings.....

...and yes its a numeric character reference...sorry always mix up my words....a bit rusty these days!

cheers, Jim Fuller

Current Thread