<?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>3001</bug_id>
          
          <creation_ts>2006-03-15 10:52:02 +0000</creation_ts>
          <short_desc>orderDecl-2 is non-deterministic</short_desc>
          <delta_ts>2006-04-06 15:00:34 +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="John Snelson">jsnelson</reporter>
          <assigned_to name="Carmelo Montanez">carmelo</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>8729</commentid>
    <comment_count>0</comment_count>
    <who name="John Snelson">jsnelson</who>
    <bug_when>2006-03-15 10:52:02 +0000</bug_when>
    <thetext>Since XQuery specifies that &quot;the relative order of nodes in distinct trees is stable but implementation-dependent&quot; (section 2.4.1), the test &quot;orderDecl-2&quot; has non-deterministic results, and certainly cannot test the ordering declaration in the manner in which it is supposed to.

Ordering of the constructed elements used in this test should be implementation defined, but the test seems to expect some defined ordering.

There may be other tests that are incorrect in this manner, I have not done a full check of the test suite.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8755</commentid>
    <comment_count>1</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-03-16 15:33:59 +0000</bug_when>
    <thetext>John:

Thanks for the comment.  This issues was raised by another commentor and a second expected outcome was added to the catalog file.  Please close the
bug if in agreement.

Thanks,
Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8759</commentid>
    <comment_count>2</comment_count>
    <who name="John Snelson">jsnelson</who>
    <bug_when>2006-03-16 18:11:31 +0000</bug_when>
    <thetext>I am assuming that the purpose of this test is to exercise the order declaration, in which case this is an unsatisfactory solution. With a second expected outcome the order declaration is not tested.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8760</commentid>
    <comment_count>3</comment_count>
    <who name="John Snelson">jsnelson</who>
    <bug_when>2006-03-16 18:14:48 +0000</bug_when>
    <thetext>What about a test like this:

declare ordering ordered;
let $a := &lt;a&gt;&lt;b&gt;1&lt;/b&gt;&lt;c&gt;2&lt;/c&gt;&lt;/a&gt;
return $a/b union $a/c

which does test the order declaration.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9053</commentid>
    <comment_count>4</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-04-06 14:53:53 +0000</bug_when>
    <thetext>Hey John:

Sorry for the delay.  I think your suggestion is just fine.  I implemented it.
Please close the bug if in agreement and when able to verify.

Thanks,
Carmelo</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9054</commentid>
    <comment_count>5</comment_count>
    <who name="John Snelson">jsnelson</who>
    <bug_when>2006-04-06 15:00:34 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>