<?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>2995</bug_id>
          
          <creation_ts>2006-03-09 02:21:27 +0000</creation_ts>
          <short_desc>orderDecl-2 depends on undefined document order</short_desc>
          <delta_ts>2006-03-11 01:29:09 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>0.8.6</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="Per Bothner">per</reporter>
          <assigned_to name="Carmelo Montanez">carmelo</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8642</commentid>
    <comment_count>0</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2006-03-09 02:21:27 +0000</bug_when>
    <thetext>The expression in orderDecl-2.xq:
(&lt;a&gt;1&lt;/a&gt;) union (&lt;b&gt;2&lt;/b&gt;)
results in the nodes &lt;a&gt;1&lt;/a&gt; and &lt;b&gt;2&lt;/b&gt; in document order,
since there is a &apos;ordering ordered&apos; declaration.
But that since the &quot;document order&quot; in this case is
implementation defined, the result is still indeterminate.

(I searched for previous bugs with union or orderDecl,
but didn&apos;t find one.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8667</commentid>
    <comment_count>1</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-03-10 20:20:56 +0000</bug_when>
    <thetext>Per:

I am not sure that I agree with with you.  From the Query specs 

&quot;Ordering mode affects the behavior of path expressions that include a &quot;/&quot; or &quot;//&quot; operator or an axis step; union, intersect, ...&quot;

Why will it still indeterminate?

Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8668</commentid>
    <comment_count>2</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2006-03-10 20:37:17 +0000</bug_when>
    <thetext>The ordering mode specifies that the result of union is in document order.  That is not indeterminate.

However, document order itself is indeterminate (or implementation dependent) in this case, the since the constructed element nodes do not share a common ancestor.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8673</commentid>
    <comment_count>3</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-03-10 21:34:37 +0000</bug_when>
    <thetext>Per:

Correct.  Submitted a second set of expect results.  Please close the bug
if in agreement and able to verify.

Thanks,
Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8680</commentid>
    <comment_count>4</comment_count>
    <who name="Per Bothner">per</who>
    <bug_when>2006-03-11 01:29:09 +0000</bug_when>
    <thetext>I can&apos;t really &quot;verify&quot; the fix it until I get the next version of the testsuite, or at least a patch.  But I might as well close it anyway.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>