This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3455 - fn-collection-x tests have unspecified results
Summary: fn-collection-x tests have unspecified results
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-14 19:22 UTC by David Carlisle
Modified: 2006-08-09 10:00 UTC (History)
0 users

See Also:


Attachments

Description David Carlisle 2006-07-14 19:22:55 UTC
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's for the purpose of this test by copying the specified documents to directories
the using saxon's in built collection uri handler eg
collection('TestSources/collection2/?*.xml')
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
Comment 1 Andrew Eisenberg 2006-07-17 21:11:13 UTC
Quite right. I'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.