[Bug 30105] [xslt30ts] X/copy-of() and X/snapshot() - order of results

https://www.w3.org/Bugs/Public/show_bug.cgi?id=30105

--- Comment #2 from Michael Kay <mike@saxonica.com> ---
(Results of investigation for anyone who is interested:

There's a couple of lines of code in Saxon-EE, originally intended to be for
streamed-mode only, which decide that X/snapshot() is deemed to be in document
order; because we can choose what the document order of snapshots is, we'll
deem it to be the order in which they are created. This code isn't present for
Saxon-HE. As a result, Saxon-HE is sorting the result of the expression into
document order, and Saxon-EE is not. Trees are sorted in order of document
number, and document number for a snapshot is not allocated at snapshot
creation time, but at the time a document number is first requested. The first
time a document number is requested is when Quicksort asks to compare the
document order of two snapshots, and since Quicksort picks nodes to compare
effectively at random, the effect is to randomize the order of the sequence.
Which is all perfectly conformant, but not especially helpful.

And the bottom line is that the tests are wrong.)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Saturday, 29 April 2017 21:28:37 UTC