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

Re: Character substitution

Subject: Re: Character substitution
From: Jim Fuller <jim.fuller@xxxxxxxxxxxxxx>
Date: Mon, 10 Jan 2005 11:42:03 -0500
xslt character substitution
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>

xslt
<?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"/>
</xsl:template>
</xsl:stylesheet>


I get a nice little euro symbol

<html>
<title></title>
<body><test>&#128;</test></body>
</html>

......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

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.