<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>2542</bug_id>
          
          <creation_ts>2005-11-21 13:02:02 +0000</creation_ts>
          <short_desc>fn:id and fn:idref are not affected by ordering mode unordered</short_desc>
          <delta_ts>2006-02-14 08:14:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 1.0</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jan Rittinger">rittinge</reporter>
          <assigned_to name="Don Chamberlin">chamberl</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>7241</commentid>
    <comment_count>0</comment_count>
    <who name="Jan Rittinger">rittinge</who>
    <bug_when>2005-11-21 13:02:06 +0000</bug_when>
    <thetext>In http://www.w3.org/TR/xquery/#id-unordered-expressions the ordering mode 
``unordered&apos;&apos; 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&apos;&apos;, as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8251</commentid>
    <comment_count>1</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2006-02-14 00:59:43 +0000</bug_when>
    <thetext>Jan,
On 01 Feb 2006 the Query working group agreed that unordered mode should affect 
the result of fn:id and fn:idref. This change will affect XQuery but not XPath, 
since XPath does not have an unordered mode. The change will be reflected in 
the next version of the XQuery specification. If you find this resolution 
acceptable, please mark the Bugzilla comment closed (if we do not hear from 
you, we will mark it closed at the end of Feb. 2006).
Regards,
Don Chamberlin (for the Query working group)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>