<?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>3733</bug_id>
          
          <creation_ts>2006-09-15 19:39:14 +0000</creation_ts>
          <short_desc>[XPath] reorder rules in Node Comparisons</short_desc>
          <delta_ts>2006-09-19 17:40:11 +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>XPath 2.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>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>3699</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Andrew Eisenberg">andrew.eisenberg</reporter>
          <assigned_to name="Don Chamberlin">chamberl</assigned_to>
          <cc>tim</cc>
          
          <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>11806</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-09-15 19:39:14 +0000</bug_when>
    <thetext>In http://www.w3.org/Bugs/Public/show_bug.cgi?id=3699, it was suggested that bullets 2 and 3 be swapped in section 3.5.3, Node Comparisons. This section now reads as follows:

&quot;The result of a node comparison is defined by the following rules:

1. The operands of a node comparison are evaluated in implementation-dependent order.

2. Each operand must be either a single node or an empty sequence; otherwise a type error is raised [err:XPTY0004].

3. If either operand is an empty sequence, the result of the comparison is an empty sequence, and the implementation need not evaluate the other operand or apply the operator. However, an implementation may choose to evaluate the other operand in order to determine whether it raises an error.

4. ...&quot;

As written, the commentor thought that we might intend that &quot;() is 100&quot; be required to raise XPTY0004.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11871</commentid>
    <comment_count>1</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2006-09-19 17:39:57 +0000</bug_when>
    <thetext>Andrew,
On Sept. 16, 2006, the Query and XSLT working groups discussed this issue and agreed with your suggestion to reverse the order of Rules 2 and 3 in Section 3.5.3, Node Comparisons. This change will enable an early exit from node comparisons if either operand is an empty sequence (preserving consistency with value comparisons.) Since you were present during the discussion, I am marking this bug report as Fixed and Closed.
Regards,
Don Chamberlin (for the Query and XSLT working groups)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>