URIResolver | javax.xml.transform |
This interface allows an application to tell a transformer how to resolve the URIs that appear in an XSLT stylesheet. If you pass a URIResolver to the setURIResolver( ) method of a TRansformer or transformerFactory then when the transformer or TRansformerFactory encounters a URI, it first passes that URI, along with the base URI to the resolve( ) method of the URIResolver. If resolve( ) returns a Source object, then the transformer will use that Source. If a transformer or transformerFactory has no URIResolver registered, or if the resolve( ) method returns null, then the tranformer or factory will attempt to resolve the URI itself.public interface URIResolver { // Public Instance Methods Source resolve (String href , String base ) throws TransformerException; }
Passed To transformer.setURIResolver( ), transformerFactory.setURIResolver( )Returned By transformer.getURIResolver( ), transformerFactory.getURIResolver( ) |