Package com.saxonica.ee.jaxp
Class ResourceResolverWrappingLSResourceResolver
java.lang.Object
com.saxonica.ee.jaxp.ResourceResolverWrappingLSResourceResolver
- All Implemented Interfaces:
ResourceResolver
This class implements the Saxon ResourceResolver interface as a wrapper around
a DOM Level 3 LSResourceResolver. This serves two purposes: it allows the
same underlying object to be used in both roles, and it allows an LSResourceResolver
to be passed around the system in places where a URIResolver is expected, for
example in the PipelineConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve
(ResourceRequest request) Called by an XSLT processor when it encounters an xsl:include, xsl:import, or document() function.
-
Constructor Details
-
ResourceResolverWrappingLSResourceResolver
-
-
Method Details
-
getLSResourceResolver
-
resolve
Called by an XSLT processor when it encounters an xsl:include, xsl:import, or document() function.- Specified by:
resolve
in interfaceResourceResolver
- Parameters:
request
- the resource request- Returns:
- A Source object, or null if the href cannot be resolved, and the processor should try to resolve the URI itself.
- Throws:
XPathException
- if an error occurs when trying to resolve the URI.
-