Class ResourceResolverWrappingLSResourceResolver

java.lang.Object
com.saxonica.ee.jaxp.ResourceResolverWrappingLSResourceResolver
All Implemented Interfaces:
ResourceResolver

public class ResourceResolverWrappingLSResourceResolver extends 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 Details

    • ResourceResolverWrappingLSResourceResolver

      public ResourceResolverWrappingLSResourceResolver(LSResourceResolver resolver)
  • Method Details

    • getLSResourceResolver

      public LSResourceResolver getLSResourceResolver()
    • resolve

      public 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 interface ResourceResolver
      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.