You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/09/10 14:46:02 UTC
[DO NOT REPLY: Bug 3517] New:
xsltc fails conf test sort13 non-numerics not clustering
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3517
*** shadow/3517 Mon Sep 10 05:46:02 2001
--- shadow/3517.tmp.6676 Mon Sep 10 05:46:02 2001
***************
*** 0 ****
--- 1,79 ----
+ +============================================================================+
+ | xsltc fails conf test sort13 non-numerics not clustering |
+ +----------------------------------------------------------------------------+
+ | Bug #: 3517 Product: XalanJ2 |
+ | Status: NEW Version: 2.0.0 |
+ | Resolution: Platform: All |
+ | Severity: Minor OS/Version: All |
+ | Priority: Other Component: org.apache.xalan.xsltc |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xalan-dev@xml.apache.org |
+ | Reported By: tamiro@east.sun.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ The purpose of this test is to show all items that aren't true numbers should
+ cluster together. Saxon, XT, and Xalan do agree on the expected results.
+
+ Expected Output for sort13
+ --------------------------
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out>
+ Ascending order....
+ First|p2|1.0.9|00k|1.u|0.5.9|1-m|0.5s|Last|0|0.5|1|1.0| 1.1|007|7|11|</out>
+
+
+ Obtained Output for sort13
+ --------------------------
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out>
+ Ascending order....
+ 0|0.5|1|1.0| 1.1|007|7|11|First|p2|1.0.9|00k|1.u|0.5.9|1-m|0.5s|Last|</out>
+
+ glrr 298 =>cat sort13.xsl
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+
+ <!-- FileName: SORT13 -->
+ <!-- Document: http://www.w3.org/TR/xslt -->
+ <!-- DocVersion: 19991116 -->
+ <!-- Section: 10 -->
+ <!-- Creator: David Marston -->
+ <!-- Purpose: Numeric sort, all items that aren't true numbers should cluster
+ together. -->
+
+ <xsl:template match="doc">
+ <out>
+ Ascending order....
+ <xsl:for-each select="t">
+ <xsl:sort data-type="number"/>
+ <xsl:value-of select="."/><xsl:text>|</xsl:text>
+ </xsl:for-each>
+ </out>
+ </xsl:template>
+
+ </xsl:stylesheet>
+ glrr 299 =>cat sort13.xml
+ <?xml version="1.0"?>
+ <!-- Test for xsl:sort -->
+ <doc>
+ <t>First</t>
+ <t>1</t>
+ <t>p2</t>
+ <t>1.0.9</t>
+ <t>007</t>
+ <t>1.0</t>
+ <t>7</t>
+ <t>00k</t>
+ <t>1.u</t>
+ <t>0.5</t>
+ <t>0.5.9</t>
+ <t>0</t>
+ <t>1-m</t>
+ <t> 1.1</t>
+ <t>11</t>
+ <t>0.5s</t>
+ <t>Last</t>
+ </doc>