Support #5277
closedImprove the resolve-uri function to go through the XML catalog?
0%
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
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·.
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!
Updated by Norm Tovey-Walsh over 2 years ago
Saxonica Developer Community notifications@plan.io writes:
[[PGP Signed Part:Undecided]]
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.
Updated by Radu Coravu over 2 years ago
Ok. Then you can probably close this request.
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