This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: encoding and XSL Transformation
- From: Mike Brown <mike at skew dot org>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 11 Sep 2002 14:54:16 -0600 (MDT)
- Subject: Re: [xsl] encoding and XSL Transformation
- Reply-to: xsl-list at lists dot mulberrytech dot com
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 ’., but for XML purposes, either
> ’ in hex or ’ 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(.,
'€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ',
'€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ')"/>
</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