xsl-list
[Top] [All Lists]

Re: encoding and XSL Transformation

2002-09-11 14:25:57
From: "Mike Brown" <mike(_at_)skew(_dot_)org>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>

It wouldn't necessarily have to be before.

<xsl:template match="text()">
  <xsl:value-of select="translate(.,

'&#x80;&#x82;&#x83;&#x84;&#x85;&#x86;&#x87;&#x88;&#x89;&#x8A;&#x8B;&#x8C;&#x
8E;&#x91;&#x92;&#x93;&#x94;&#x95;&#x96;&#x97;&#x98;&#x99;&#x9A;&#x9B;&#x9C;&
#x9E;&#x9F;',

'&#x20AC;&#x201A;&#x192;&#x201E;&#x2026;&#x2020;&#x2021;&#x2C6;&#x2030;&#x16
0;&#x2039;&#x152;&#x17D;&#x2018;&#x2019;&#x201C;&#x201D;&#x2022;&#x2013;&#x2
014;&#x2DC;&#x2122;&#x161;&#x203A;&#x153;&#x17E;&#x178;')"/>
</xsl:template>

Very nice.

Cheers,

Charles White
The Tumeric Partnership
http://www.tumeric.net
chuck(_at_)tumeric(_dot_)net
http://www.javertising.com
________________________________________
Author, Mastering XSLT, Sybex Books
Co-Author, Mastering XML, Premium Edition, Sybex Books




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