This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Since XQuery specifies that "the relative order of nodes in distinct trees is stable but implementation-dependent" (section 2.4.1), the test "orderDecl-2" 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.
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
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.
What about a test like this: declare ordering ordered; let $a := <a><b>1</b><c>2</c></a> return $a/b union $a/c which does test the order declaration.
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
Thanks.