Project

Profile

Help

Bug #5640

closed

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

Added by Octavian Nadolu over 2 years ago. Updated about 1 year ago.

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

100%

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

Actions #2

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.

Actions #3

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.

Actions #4

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

Actions #5

Updated by Debbie Lockett about 2 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

Documentation 11 updated online.

Actions #6

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?

Actions #7

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

Also available in: Atom PDF