Bug #5640
closeddocument-uri() function does not work on a node from a collection
100%
Description
If you use the document-uri() function to obtain the URI of a node from a collection, this does not work with Saxon 11.4. It works fine with Saxon 10.6. I attached the sample files. You can run a transformation tokenize.xsl with root.xml.
Files
Updated by Martin Honnen over 2 years ago
I think https://saxonica.plan.io/issues/5339#note-4 suggests that base-uri
or saxon:system-id
are to be used with recent Saxon releases.
Updated by Michael Kay over 2 years ago
Please see bug #4837 for some of the history here. A search for "document-uri" in this tracker wil also reveal other complications.
Updated by Octavian Nadolu over 2 years ago
Thanks for the explanations. Maybe you add a note in the document-uri() function documentation to explain this situation. It is possible that other users will encounter the same problem.
Updated by Michael Kay about 2 years ago
- Category set to Documentation
- Status changed from New to Resolved
- Assignee set to Michael Kay
- Applies to branch 11, trunk added
- Fix Committed on Branch 11, trunk added
- Platforms .NET, Java added
I've updated the Saxon documentation to explain the way Saxon implements the function.
Note that a document retrieved using the collection() function has a document-uri() property if and only if the collection is stable.
Updated by Debbie Lockett about 2 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
Documentation 11 updated online.
Updated by Daniel Haley about 1 year ago
Michael Kay wrote in #note-4:
I've updated the Saxon documentation to explain the way Saxon implements the function.
Note that a document retrieved using the collection() function has a document-uri() property if and only if the collection is stable.
Can you please point me to the documentation that was updated that explains the way Saxon implements this function?
Updated by Daniel Haley about 1 year ago
Daniel Haley wrote in #note-6:
Michael Kay wrote in #note-4:
I've updated the Saxon documentation to explain the way Saxon implements the function.
Note that a document retrieved using the collection() function has a document-uri() property if and only if the collection is stable.
Can you please point me to the documentation that was updated that explains the way Saxon implements this function?
All of my questions were answered in https://saxonica.plan.io/issues/6227
Please register to edit this issue