Package com.saxonica.ee.jaxp
Class ResourceResolverWrappingLSResourceResolver
- java.lang.Object
-
- com.saxonica.ee.jaxp.ResourceResolverWrappingLSResourceResolver
-
- All Implemented Interfaces:
ResourceResolver
public class ResourceResolverWrappingLSResourceResolver extends java.lang.Object implements 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 Constructor Description ResourceResolverWrappingLSResourceResolver(org.w3c.dom.ls.LSResourceResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.w3c.dom.ls.LSResourceResolver
getLSResourceResolver()
javax.xml.transform.Source
resolve(ResourceRequest request)
Called by an XSLT processor when it encounters an xsl:include, xsl:import, or document() function.
-
-
-
Method Detail
-
getLSResourceResolver
public org.w3c.dom.ls.LSResourceResolver getLSResourceResolver()
-
resolve
public javax.xml.transform.Source resolve(ResourceRequest request) throws XPathException
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.
-
-