Project

Profile

Help

Bug #5595

closed

Saxon 11 - error when using wrapper over ResourceResolverWrappingURIResolver

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

Status:
Duplicate
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2022-07-08
Due date:
% Done:

0%

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

Description

I'm using a ResourceResolverWrappingURIResolver over "org.apache.xml.resolver.tools.CatalogResolver" The method "org.apache.xml.resolver.tools.CatalogResolver.resolve(String, String)" always returns a SaxSource. This makes the Saxon StandardUnparsedTextResolver.resolve(URI, String, Configuration) to break with an error as it only supports StreamSource. I would suggest automatically converting the SaxSource to a StreamSource in the "StandardUnparsedTextResolver.resolve" method to handle such cases.


Related issues

Is duplicate of Saxon - Bug #5582: External resolver library returns SAXSource which StandardUnparsedTextResolver rejectsClosedMichael Kay2022-06-27

Actions

Please register to edit this issue

Also available in: Atom PDF