<?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>3781</bug_id>
          
          <creation_ts>2006-10-01 21:13:30 +0000</creation_ts>
          <short_desc>[XQuery] The list of functions affected by &quot;unordered&quot; (section 3.9) is possibly incorrect.</short_desc>
          <delta_ts>2006-10-11 21:39:37 +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>Windows XP</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>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hans-Juergen Rennau">hrennau</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>12227</commentid>
    <comment_count>0</comment_count>
    <who name="Hans-Juergen Rennau">hrennau</who>
    <bug_when>2006-10-01 21:13:30 +0000</bug_when>
    <thetext>In section 3.9, note #1, functions are listed which may return nondeterministic results in a region of the query where ordering mode is &quot;unordered&quot;. The list includes the function fn:last. As this function returns the context size, I should expect it to be independent of the ordering mode. So I doubt whether it is correct to include it in the list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12228</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2006-10-01 23:03:28 +0000</bug_when>
    <thetext>Actually, the whole note is a bit sloppy. I think what it&apos;s trying to say is that in unordered mode, it&apos;s indeterminate which element will be returned by an expression such as (//a)[last()]. You have to read the caveat for all these functions in the same way: the behaviour of the function itself is determinate, but if it is used in an expression along with operands that evaluate sequences in unordered mode, the overall result is unpredictable and meaningless.

Michael Kay
(personal response)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12398</commentid>
    <comment_count>2</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2006-10-11 21:39:19 +0000</bug_when>
    <thetext>Hans-Juergen,
Thanks for this comment. You are correct. I have rewritten the Note in Section 3.9 to clarify that it is the query rather than the function that is nondeterministic. Since this bug report is classified as editorial and I have made the corrections, I have changed its status to Closed. The corrections will appear in the next published version of the XQuery specification.
Regards,
Don Chamberlin (for the Query Working Group)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>