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

Re: encoding and XSL Transformation

Subject: Re: encoding and XSL Transformation
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 11 Sep 2002 14:54:16 -0600 (MDT)
x2019
Chuck White wrote:
> Unicode has solved the world's problems, but it hasn't removed legacy
> software from users' systems yet. The bottom line on the original poster's
> question is that before the document is brought in as an XML document he
> needs to convert the single quote to the Unicode representation for that
> single quote, which is not \u0092 or &#146;., but for XML purposes, either
> &#x2019; in hex or &#8217 in decimal format, hence the need for the kind of
> link I indicated that references this kind of thing, or for apps like
> Unipad.

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;&#x8E;&#x91;&#x92;&#x93;&#x94;&#x95;&#x96;&#x97;&#x98;&#x99;&#x9A;&#x9B;&#x9C;&#x9E;&#x9F;',
  '&#x20AC;&#x201A;&#x192;&#x201E;&#x2026;&#x2020;&#x2021;&#x2C6;&#x2030;&#x160;&#x2039;&#x152;&#x17D;&#x2018;&#x2019;&#x201C;&#x201D;&#x2022;&#x2013;&#x2014;&#x2DC;&#x2122;&#x161;&#x203A;&#x153;&#x17E;&#x178;')"/>
</xsl:template>

   - Mike
____________________________________________________________________________
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  resume: http://skew.org/~mike/resume/

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


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.