jd.xml.xslt.trax
Class DefaultUriResolver
java.lang.Object
jd.xml.xslt.trax.DefaultUriResolver
- All Implemented Interfaces:
- URIResolver
- public class DefaultUriResolver
- extends Object
- implements URIResolver
A URIResolver which implements the default resolution strategy.
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 |
INSTANCE
public static final DefaultUriResolver INSTANCE
- The instance.
DefaultUriResolver
protected DefaultUriResolver()
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.