You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Mark Owens <Ma...@coda.com> on 2001/03/27 16:37:39 UTC

ICU + XALAN On WinNT 4

Hi,
I've just downloaded and built the latest stable Xalan files plus the ICU
libraries using MSVC6. I followed the instructions on building ICU support
with Xalan. Everything seems to build OK.
I'm particularly interested in the ICU collating sequencing so I rebuilt
TestXSLT as described in the documentation.
 
Although I believe I've got my PATH set up correctly, it refuses to sort
based on the lang attribute and reverts to the English order. I've concluded
(maybe incorrectly) that the ICU libs aren't being called.
 
This xml file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<list xml:lang="fr">
  <item>côté</item>
  <item>coté</item>
  <item>côte</item>
  <item>cote</item>
</list>

 
pushed through this stylesheet:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl [
  <!ENTITY nl "<xsl:text>&#13;&#10;</xsl:text>">
]>
 
<xsl:stylesheet 
 version="1.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 >
  <xsl:output method="text" encoding="ISO-8859-1"/>
  <xsl:strip-space elements="*"/>
 
<xsl:template match="/list">
 
 <xsl:for-each select="item">
  <xsl:sort lang="fr" select="."/>
     <xsl:value-of select="."/>&nl;
 </xsl:for-each>
</xsl:template>
 
</xsl:stylesheet>

 
should produce this list:
cote
côte
coté
côté

but I actually get:
cote
coté
côte
côté
 
Has anyone got any ideas what I am doing wrong?
Thanks 
Mark