DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13913>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13913 xsl:sort and SPACE character Summary: xsl:sort and SPACE character Product: XalanJ2 Version: 2.4 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Normal Priority: Other Component: Xalan AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I tried very simple xsl:sort test and have a question. I used following XML+XSL files. *** sorttest.xml ********************************** <?xml version="1.0" encoding="UTF-8"?> <terms> <term><item>a</item></term> <term><item>a b</item></term> <term><item>b</item></term> <term><item>ab</item></term> <term><item>a!b</item></term> </terms> *************************************************** *** sorttest.xsl ********************************** <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="terms"> <xsl:apply-templates select="term"> <xsl:sort select="item"/> </xsl:apply-templates> </xsl:template> <xsl:template match="term"> <xsl:value-of select="item"/><xsl:text> </xsl:text> </xsl:template> </xsl:stylesheet> *************************************************** I execute following command on Windows2000+Xalan-J2.4.0 with JDK1.3.0, JDK1.3.1_05 and JDK1.4.1. java -Djava.endorsed.dir=. -cp xalan.jar org.apache.xalan.xslt.Process -IN sorttest.xml -XSL sorttest.xsl -TEXT I would like to get a sort result as a a b a!b ab b but Xalan-J2 output a a!b ab a b b Here, in C0 Controls and Basic Latin, http://www.unicode.org/charts/PDF/U0000.pdf the EXCLAMATION MARK is defined as U0021 and the SPACE is U0020. So I think that Xalan-J2 does not correctly work for xsl:sort process. Does anyone have any idea or is this bug? Regards, --- Satoshi Ishigami VIC TOKAI CORPORATION
