jd.xml.xslt.trax
Class DefaultUriResolver

java.lang.Object
  extended byjd.xml.xslt.trax.DefaultUriResolver
All Implemented Interfaces:
URIResolver

public class DefaultUriResolver
extends Object
implements URIResolver

A URIResolver which implements the default resolution strategy.


Field Summary
static DefaultUriResolver INSTANCE
          The instance.
 
Constructor Summary
protected DefaultUriResolver()
           
 
Method Summary
 Source resolve(String href, String baseUri)
          Called by the processor when it encounters an xsl:include, xsl:import, or document() function.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final DefaultUriResolver INSTANCE
The instance.

Constructor Detail

DefaultUriResolver

protected DefaultUriResolver()
Method Detail

resolve

public Source resolve(String href,
                      String baseUri)
               throws TransformerException
Description copied from interface: URIResolver
Called by the processor when it encounters an xsl:include, xsl:import, or document() function.

Specified by:
resolve in interface URIResolver
Parameters:
href - An href attribute, which may be relative or absolute.
baseUri - The base URI in effect when the href attribute was encountered.
Returns:
A Source object, or null if the href cannot be resolved, and the processor should try to resolve the URI itself.
Throws:
TransformerException - if an error occurs when trying to resolve the URI.