Project

Profile

Help

Bug #4576

closed

Document identity when doc() or document() selects the initial source document

Added by Michael Kay almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2020-06-05
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
10, 9.9
Fix Committed on Branch:
10
Fixed in Maintenance Release:
Platforms:

Description

When doc() is called specifying the same URI as the initial source document, it doesn't find the document in the pool and therefore fetches a new document with different node identity. Apparently this changed in 9.9: previously the initial source document was placed in the pool.

Added XSLT3 test case document-2011, but it allows either outcome because the spec isn't prescriptive on this.

Need to watch out for complications involving strip-space options, accumulators, etc, where the options for a single document can vary from one package to another.

Please register to edit this issue

Also available in: Atom PDF