[Bug 2542] fn:id and fn:idref are not affected by ordering mode unordered

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2542

           Summary: fn:id and fn:idref are not affected by ordering mode
                    unordered
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: rittinge@in.tum.de
         QAContact: public-qt-comments@w3.org


In http://www.w3.org/TR/xquery/#id-unordered-expressions the ordering mode 
``unordered'' changes the order of most XQuery constructs returning a sequence 
of nodes (path steps, union, except, and intersect) to an implementation 
dependent order.

The only other XQuery expressions, that also return a sequence of nodes, are the 
two functions fn:id (http://www.w3.org/TR/xpath-functions/#func-id)and fn:idref 
(http://www.w3.org/TR/xpath-functions/#func-idref).

In the current version they return their result always in document order.

I would, however, expect their result to be in an implementation dependent 
order, whenever the ordering mode is ``unordered'', as well.

Received on Monday, 21 November 2005 13:02:10 UTC