Project

Profile

Help

Bug #5640

closed

document-uri() function does not work on a node from a collection

Added by Octavian Nadolu about 2 months ago. Updated 21 days ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
Documentation
Sprint/Milestone:
-
Start date:
2022-08-09
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
11, trunk
Fix Committed on Branch:
11, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

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

saxon-documentUri.zip (698 Bytes) saxon-documentUri.zip Octavian Nadolu, 2022-08-09 14:02
Actions #1

Updated by Martin Honnen about 2 months 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.

Actions #2

Updated by Michael Kay about 2 months ago

Please see bug #4837 for some of the history here. A search for "document-uri" in this tracker wil also reveal other complications.

Actions #3

Updated by Octavian Nadolu about 2 months 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.

Actions #4

Updated by Michael Kay 21 days 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.

Please register to edit this issue

Also available in: Atom PDF