Project

Profile

Help

Bug #5582

closed

External resolver library returns SAXSource which StandardUnparsedTextResolver rejects

Added by Norm Tovey-Walsh over 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JAXP Java API
Sprint/Milestone:
-
Start date:
2022-06-27
Due date:
% Done:

0%

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

Description

From Stack Overflow,

I'm using Saxon 11 from ANT. XSLT transformation works, except that the unparsed-text() function triggers a fatal error. Error message:

Resolver for unparsed-text() returned non-StreamSource;

The problem here is that StandardUnparsedTextResolver expects the resolved resource to be a StreamSource. This is likely an unreasonable expectation for third party resolvers. Ant, in particular, returns a SAXSource which seems like a reasonable lowest-common-denominator API.

Should we support a SAXSource response?


Related issues

Has duplicate Saxon - Bug #5595: Saxon 11 - error when using wrapper over ResourceResolverWrappingURIResolverDuplicate2022-07-08

Actions

Please register to edit this issue

Also available in: Atom PDF