[Webkit-unassigned] [Bug 16077] New: XSLT processor <xsl:sort> algorithm is incompatible with other browser implementations

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Nov 20 18:03:09 PST 2007


http://bugs.webkit.org/show_bug.cgi?id=16077

           Summary: XSLT processor <xsl:sort> algorithm is incompatible with
                    other browser implementations
           Product: WebKit
           Version: 523.x (Safari 3)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: XML
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: jdarren at yahoo-inc.com


When sorting an XML dom using an XSL transformation  (via the <xsl:sort>)  the
algorithm doesn't appear to be to spec:

http://www.w3.org/TR/xslt#sorting

from the spec:
case-order has the value upper-first or lower-first; this applies when
data-type="text", and specifies that upper-case letters should sort before
lower-case letters or vice-versa respectively. For example, if lang="en", then
A a B b are sorted with case-order="upper-first" and a A b B are sorted with
case-order="lower-first". The default value is language dependent.
....

Safari appears to be sorting a list with upper and lower case entries in it
like this

  A B a b

rather than like this

 A a B b  *or* a A b B (depending on the value of the case-order attribute).

For a test case, download the XML and XSL files on this page:
   http://www.w3schools.com/xsl/xsl_sort.asp

... then edit the entries to include an artist with all lower-case chars. 
Display this in Safari,
FF, and IE to see the difference.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list