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:58:41 UTC

[DO NOT REPLY: Bug 1396] xsltc sort collation incorrect (fixed) but case-order still not working

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=1396

*** shadow/1396	Sun May 20 17:25:32 2001
--- shadow/1396.tmp.6738	Mon Sep 10 05:58:41 2001
***************
*** 1,19 ****
! Bug#: 1396
! Product: XalanJ2
! Version: 2.0.0
! Platform: Sun
! OS/Version: Solaris
! Status: NEW   
! Resolution: 
! Severity: Normal
! Priority: Medium
! Component: org.apache.xalan.xsltc
! AssignedTo: xalan-dev@xml.apache.org                            
! ReportedBy: tamiro@east.sun.com               
! URL: 
! Cc: 
! Summary: xsltc sort collation incorrect and case-order not working
! 
  [from SunMicrosystem's bug 4398991]
  When a stylesheet includes case-order="upper-first" attribute, the 
  selected text is not being sorted with upper case taking 
--- 1,19 ----
! +============================================================================+
! | xsltc sort collation incorrect (fixed) but case-order still not working    |
! +----------------------------------------------------------------------------+
! |        Bug #: 1396                        Product: XalanJ2                 |
! |       Status: NEW                         Version: 2.0.0                   |
! |   Resolution:                            Platform: Sun                     |
! |     Severity: Normal                   OS/Version: Solaris                 |
! |     Priority: Medium                    Component: org.apache.xalan.xsltc  |
! +----------------------------------------------------------------------------+
! |  Assigned To: xalan-dev@xml.apache.org                                     |
! |  Reported By: tamiro@east.sun.com                                          |
! |      CC list: Cc:                                                          |
! +----------------------------------------------------------------------------+
! |          URL:                                                              |
! +============================================================================+
! |                              DESCRIPTION                                   |
  [from SunMicrosystem's bug 4398991]
  When a stylesheet includes case-order="upper-first" attribute, the 
  selected text is not being sorted with upper case taking 
***************
*** 291,293 ****
--- 291,389 ----
      }
          
  }
+ 
+ ------- Additional Comments From tamiro@east.sun.com  2001-09-10 05:58 -------
+ sort08 now passes, so the first half of this bug is resolved. The second 
+ half about case-order still isn't resolved. conf test sort15 provides 
+ a test showing a problem with case-order.
+ 
+ Expected Output
+ ---------------
+ <?xml version="1.0" encoding="UTF-8"?>
+ <out><item>document</item>
+ <item>elements</item>
+ <item>mechanism</item>
+ <item>must</item>
+ <item>Namespaces</item>
+ <item>preFIX</item>
+ <item>prefix</item>
+ <item>processors</item>
+ <item>recognize</item>
+ <item>recognized</item>
+ <item>specified</item>
+ <item>to</item>
+ <item>URI</item>
+ <item>use</item>
+ <item>XML</item>
+ <item>XSLT</item>
+ <item>XSLT-defined</item>
+ </out>
+ 
+ 
+ Obtained Output for sort15
+ --------------------------
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out><item>document</item>
+ <item>elements</item>
+ <item>mechanism</item>
+ <item>must</item>
+ <item>Namespaces</item>
+ <item>prefix</item> <---- THIS SHOULD COME AFTER NEXT LINE
+ <item>preFIX</item>
+ <item>processors</item>
+ <item>recognize</item>
+ <item>recognized</item>
+ <item>specified</item>
+ <item>to</item>
+ <item>URI</item>
+ <item>use</item>
+ <item>XML</item>
+ <item>XSLT</item>
+ <item>XSLT-defined</item>
+ </out>
+ 
+  glrr 302 =>cat sort15.xsl
+ <?xml version="1.0"?>
+ <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
+ 
+   <!-- FileName: SORT15 -->
+   <!-- Document: http://www.w3.org/TR/xslt -->
+   <!-- DocVersion: 19991116 -->
+   <!-- Section: 10 -->
+   <!-- Creator: David Marston -->
+   <!-- Purpose: Test for xsl:sort on strings, upper-first case-order. -->
+ 
+ <xsl:template match="doc">
+   <out>
+     <xsl:for-each select="item">
+       <xsl:sort lang="en-US" case-order="upper-first"/>
+       <xsl:copy-of select="."/><xsl:text>
+ </xsl:text>
+     </xsl:for-each>
+   </out>
+ </xsl:template>
+ 
+ </xsl:stylesheet>
+  glrr 303 =>cat sort15.xml
+ <?xml version="1.0"?>
+ <!-- Test for xsl:sort -->
+ <doc>
+   <item>XSLT</item>
+   <item>processors</item>
+   <item>must</item>
+   <item>use</item>
+   <item>XML</item>
+   <item>Namespaces</item>
+   <item>mechanism</item>
+   <item>to</item>
+   <item>recognize</item>
+   <item>XSLT-defined</item>
+   <item>elements</item>
+   <item>specified</item>
+   <item>document</item>
+   <item>prefix</item>
+   <item>recognized</item>
+   <item>URI</item>
+   <item>preFIX</item>
+ </doc>
+