<?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>3086</bug_id>
          
          <creation_ts>2006-04-05 12:58:53 +0000</creation_ts>
          <short_desc>fn:boolean and ordering mode unordered</short_desc>
          <delta_ts>2006-04-21 23:27:56 +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>All</rep_platform>
          <op_sys>All</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="Jens Teubner">jens.teubner</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>9041</commentid>
    <comment_count>0</comment_count>
    <who name="Jens Teubner">jens.teubner</who>
    <bug_when>2006-04-05 12:58:53 +0000</bug_when>
    <thetext>The XQuery Candidate Recommendation states (Sect. 2.4.3):

&quot;The effective boolean value of a sequence that contains at least one node and at least one atomic value is nondeterministic in regions of a query where &apos;ordering mode&apos; is unordered.&quot;

Most probably, this statement is based on the semantics of fn:boolean() to only look into the *first* item of a heterogeneous sequence. However, my understanding is that, even in a context where &apos;ordering mode&apos; is unordered, the order among items in a sequence (sequence order) is still well-defined. The expression

  (&lt;a/&gt;, 42)

for example, will have the node as its first result item and an integer as its second, regardless of the setting of &apos;ordering mode&apos;. The above quote, IMHO, is not compatible with the semantics of &apos;ordering mode&apos;.

&apos;Ordering mode&apos; does affect sequence order at other occasions, e.g., when the result sequence is formed from an XPath location step. Once the order of a sequence is fixed, however, it is unaffected by &apos;ordering mode&apos;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9400</commentid>
    <comment_count>1</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2006-04-21 23:27:41 +0000</bug_when>
    <thetext>Jens,
Thank you for your comment. The Query Working Group considered your comment on April 3, 2006 and agreed to change &quot;is nondeterministic&quot; to &quot;may be nondeterministic&quot; in the second Note in XQuery Section 2.4.3. We believe the conditions under which EBV is nondeterministic are adequately specified in the section on Ordered and Unordered Expressions. Since this is a minor change to a non-normative Note, I have marked this Bugzilla entry as Fixed and Closed. If you have any objections to this resolution, you may re-open this Bugzilla entry.
Regards,
Don Chamberlin (for the Query Working Group)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>