W3C home > Mailing lists > Public > public-qt-comments@w3.org > April 2017

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

From: <bugzilla@jessica.w3.org>
Date: Sat, 29 Apr 2017 21:28:29 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-30105-523-QRT23Cm8CI@http.www.w3.org/Bugs/Public/>

--- 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:58:04 UTC