Project

Profile

Help

Support #5277

closed

Improve the resolve-uri function to go through the XML catalog?

Added by Radu Coravu over 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Low
Category:
-
Sprint/Milestone:
-
Start date:
2022-02-04
Due date:
% Done:

0%

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

Description

Looking at the XSLT specification (both 2.0 and 3.0) it does not seem to explicitly say that certain XSLT functions should resolve through the XML catalog or not. The document() function resolves through the XML catalog but the resolve-uri function does not (from what I looked in the implementation code) although maybe it would be useful if it did. Started by this forum thread: https://www.oxygenxml.com/forum/viewtopic.php?p=64964#p64964

Actions #1

Updated by Michael Kay over 2 years ago

There's a nomenclature problem here: "resolve" is used both to mean making a URI absolute, and fetching the resource identified by a URI. The fn:resolve-uri() function is very explicitly about making it absolute, The spec says very explicitly

Resolving a URI does not dereference it. This is merely a syntactic operation on two ·strings·.

Actions #2

Updated by Michael Kay over 2 years ago

  • Assignee set to Norm Tovey-Walsh

Note that the XmlResolver library is much more closely integrated into Saxon in Saxon 11. I don't think the library offers an option to "rewrite" a URI based on the catalog without actually fetching the resource - Norm will know!

Actions #3

Updated by Radu Coravu over 2 years ago

Thanks for the clarifications.

Actions #4

Updated by Norm Tovey-Walsh over 2 years ago

Saxonica Developer Community writes:

[[PGP Signed Part:Undecided]]

Actions #5

Updated by Norm Tovey-Walsh over 2 years ago

  • Status changed from New to In Progress

I don't think we could justify making resolve-uri() interrogate the catalog.

Actions #6

Updated by Radu Coravu over 2 years ago

Ok. Then you can probably close this request.

Actions #7

Updated by Norm Tovey-Walsh about 2 years ago

  • Status changed from In Progress to Closed

It would be possible to write an extension function to do this, FWIW.

Please register to edit this issue

Also available in: Atom PDF