<?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>3455</bug_id>
          
          <creation_ts>2006-07-14 19:22:55 +0000</creation_ts>
          <short_desc>fn-collection-x tests have unspecified results</short_desc>
          <delta_ts>2006-08-09 10:00:38 +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>unspecified</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="David Carlisle">davidc</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10508</commentid>
    <comment_count>0</comment_count>
    <who name="David Carlisle">davidc</who>
    <bug_when>2006-07-14 19:22:55 +0000</bug_when>
    <thetext>many of the fn-collection-x tests (take -6 to be explict) have results that depend on the document order of documents in the collection. document order between document nodes is explictly unspecified, and while systems may (or may not)
have mechanisms for assigning a group of documents to a collection URI they may well not have any way to control the order of documents within a colection.

-6 is
$input-context//title
so you get the titles in the order of the documents. I implemented collection URI&apos;s for the purpose of this test by copying the specified documents to directories
the using saxon&apos;s in built collection uri handler eg
collection(&apos;TestSources/collection2/?*.xml&apos;)
in this case. This seems to be conformant but gives no control over the relative order of documents, and as it happens produces a different result from the one
distributed.

wraping the above as
for $t in $input-context//title order by $t return $t
would force an order, or the various alternatives could be given as expected results or...

David</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10546</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2006-07-17 21:11:13 +0000</bug_when>
    <thetext>Quite right. I&apos;ve modified these test cases by either adding an explicit order by clause or by providing alternate result files with the permutations of the result items.

Please close this bug report if you agree with this resolution.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>