public interface RelativeURIResolver
extends javax.xml.transform.URIResolver
Modifier and Type | Method and Description |
---|---|
javax.xml.transform.Source |
dereference(java.lang.String uri)
Called by the processor when it encounters
an xsl:include, xsl:import, or document() function.
|
java.lang.String |
makeAbsolute(java.lang.String href,
java.lang.String base)
Create an absolute URI from a relative URI and a base URI.
|
javax.xml.transform.Source |
resolve(java.lang.String href,
java.lang.String base)
Called by the processor when it encounters
an xsl:include, xsl:import, or document() function.
|
java.lang.String makeAbsolute(java.lang.String href, java.lang.String base) throws javax.xml.transform.TransformerException
href
- A relative or absolute URI, to be resolved against the specified base URIbase
- The base URI against which the first argument will be made
absolute if the absolute URI is required.resolve
method.javax.xml.transform.TransformerException
- if any failure occursjavax.xml.transform.Source dereference(java.lang.String uri) throws javax.xml.transform.TransformerException
uri
- The absolute URI to be dereferencedjavax.xml.transform.TransformerException
- if an error occurs when trying to
resolve the URI.javax.xml.transform.Source resolve(java.lang.String href, java.lang.String base) throws javax.xml.transform.TransformerException
Despite the name, the main purpose of this method is to dereference the URI, not merely to resolve it.
This method is provided because it is required by the interface. When using a RelativeURIResolver,
the single-argument dereference() method is preferred. The result of calling this method should be the
same as the result of calling dereference(makeAbsolute(href, base))
resolve
in interface javax.xml.transform.URIResolver
href
- An href attribute, which may be relative or absolute.base
- The base URI against which the first argument will be made
absolute if the absolute URI is required.javax.xml.transform.TransformerException
- if an error occurs when trying to
resolve the URI.Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.