[Bug 2553] [F+O] Stability of collection()

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2553





------- Additional Comments From colin@colina.demon.co.uk  2005-12-03 09:16 -------
Re. David's comment that similar considerations should apply to doc() and XSLT's
document(), and the reference to Saxon's discard-document() extension function.

This is fundamentally unsound, I believe.

If after a call to discard-document(), the stylesheet later encounters a
reference to nodes within that same document, then the document will have to be
re-parsed. Although it is not difficult to implement generate-id() in such a way
that it's results are guarenteed to be the same before and after re-parsing a
document for a given node (determined by it's numbering in document order), this
is not sufficient to guarantee node identity for the same generated id, as the
same URI may no longer refer to the same document contents (this is often the
case for HTTP URIs referring to dynamically generated documents).

Received on Saturday, 3 December 2005 09:16:31 UTC