Latin 1 characters in XSLT with latest xt

Subject: Latin 1 characters in XSLT with latest xt
From: Michel Goossens <Michel.Goossens@xxxxxxx>
Date: Mon, 26 Apr 1999 09:23:38 +0200 (METDST)
I am using Latin-1 (in particular French accented) characters in my
XML documents and my XSL stylesheets (to handle elements, attributes,
etc.)

I had no problem with that, apart from the fact that xp/xt output only
UTF8, which forces me to convert the output back to Latin-1 afterwards.

Here is a little example XML file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<invitation>
<entête>
<à>Anna, Bernard, Didier, Johanna</à>
</entête>
</invitation>

With the previous version of xt I used the following XSL stylesheet

<?xml version='1.0' encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl";>
<xsl:template match="invitation/entête">
<xsl:value-of select="à"/>
</xsl:template>
</xsl:stylesheet>

and running this on the above XML example file, gives, as expected:

Anna, Bernard, Didier, Johanna

I now "adapt" the XSL stylesheet for the latest version of the spec
(in fact I just changed the second line):

<?xml version='1.0' encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/XSL/Transform/1.0";>
<xsl:template match="invitation/entête">
<xsl:value-of select="à"/>
</xsl:template>
</xsl:stylesheet>

If I run this and the XML example file with the April 22 version of xt, 
I get an error
 
a.xsl:4: illegal character

Has something changed between the Dec 98 and Apr 99 versions of the XSL
Spec so that Latin-1 characters are no longer allowed in select patterns?

----------------------------------------------------
Dr. Michel Goossens         Phone: (+41 22) 767-5028
IT Division                 Fax:   (+41 22) 767-8630
CERN                        Email:  goossens@xxxxxxx
CH-1211 Geneva 23    F-01631 CERN Cedex
Switzerland          France





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


Current Thread