Subject: Re: encoding and XSL Transformation
From: Mike Brown <mike@xxxxxxxx>
Date: Wed, 11 Sep 2002 14:54:16 -0600 (MDT)
|
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
| Current Thread |
- Re: encoding and XSL Transformation, (continued)
- Chuck White - Tue, 10 Sep 2002 14:53:26 -0400 (EDT)
- W. Eliot Kimber - Tue, 10 Sep 2002 20:55:17 -0400 (EDT)
- David Carlisle - Wed, 11 Sep 2002 04:57:22 -0400 (EDT)
- Chuck White - Wed, 11 Sep 2002 14:29:15 -0400 (EDT)
- Mike Brown - Wed, 11 Sep 2002 16:52:26 -0400 (EDT) <=
- Chuck White - Wed, 11 Sep 2002 17:15:46 -0400 (EDT)
- David Carlisle - Thu, 12 Sep 2002 05:00:20 -0400 (EDT)
- Tony Graham - Tue, 10 Sep 2002 14:29:55 -0400 (EDT)
- Michael Kay - Tue, 10 Sep 2002 10:54:35 -0400 (EDT)
|
|