Control: found -1 1.1.26-14.1 On 2008-11-01 18:40:14 +0100, Nick Wellnhofer wrote: > Support for the lang attribute of xsl:sort has been added to libxslt and > should be available in the next release. If you set the lang attribute you > should get the following sort order for most languages: > > A a B b C c
Actually I get a A b B c C (case-order being unsupported). Testcase (apply this stylesheet on itself): <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" indent="yes"/> <xsl:template match="/"> <root> <item>c</item> <item>A</item> <item>B</item> <item>b</item> <item>a</item> <item>C</item> <upper-first> <xsl:for-each select="//item"> <xsl:sort select="." lang="en" case-order="upper-first"/> <xsl:value-of select="."/> </xsl:for-each> </upper-first> <lower-first> <xsl:for-each select="//item"> <xsl:sort select="." lang="en" case-order="lower-first"/> <xsl:value-of select="."/> </xsl:for-each> </lower-first> </root> </xsl:template> </xsl:stylesheet> I get: $ xsltproc case-sort.xsl case-sort.xsl <?xml version="1.0"?> <root> <item>c</item> <item>A</item> <item>B</item> <item>b</item> <item>a</item> <item>C</item> <upper-first>aAbBcC</upper-first> <lower-first>aAbBcC</lower-first> </root> -- Vincent Lefèvre <vinc...@vinc17.net> - Web: <http://www.vinc17.net/> 100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/> Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org