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
Actions #1

Updated by Michael Kay over 2 years ago

  • Is duplicate of Bug #5582: External resolver library returns SAXSource which StandardUnparsedTextResolver rejects added
Actions #2

Updated by Michael Kay over 2 years ago

  • Status changed from New to Duplicate
  • Platforms Java added

As it happens I'm working on this one right now.

Actions #3

Updated by Michael Kay over 2 years ago

On which object (XsltCompiler, XsltTransformer, etc) are you setting the resolver?

Actions #4

Updated by Radu Coravu over 2 years ago

Sorry for posting a duplicate. I'm doing a net.sf.saxon.Configuration.setResourceResolver(ResourceResolver) using a ResourceResolverWrappingURIResolver.

Actions #5

Updated by Michael Kay over 2 years ago

OK thanks.

Please register to edit this issue

Also available in: Atom PDF