org.jafer.util
Class XMLFileUriResolver

java.lang.Object
  extended by org.jafer.util.XMLFileUriResolver
All Implemented Interfaces:
javax.xml.transform.URIResolver

public class XMLFileUriResolver
extends java.lang.Object
implements javax.xml.transform.URIResolver

This class resolves all XSLT transformer references from with in an XSLT stylesheet


Field Summary
private  java.lang.String packageRef
          Stores a reference to package that should be placed before the href to retrieve the requested file
 
Constructor Summary
XMLFileUriResolver(java.lang.String packageRef)
          Constructor
 
Method Summary
 javax.xml.transform.Source resolve(java.lang.String href, java.lang.String base)
          Resolves any references inside XSLT that require
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

packageRef

private java.lang.String packageRef
Stores a reference to package that should be placed before the href to retrieve the requested file

Constructor Detail

XMLFileUriResolver

public XMLFileUriResolver(java.lang.String packageRef)
Constructor

Parameters:
packageRef - Ref of the package that should be placed before the href to retrieve the requested file format org/jafer ....
Method Detail

resolve

public javax.xml.transform.Source resolve(java.lang.String href,
                                          java.lang.String base)
                                   throws javax.xml.transform.TransformerException
Resolves any references inside XSLT that require

Specified by:
resolve in interface javax.xml.transform.URIResolver
Parameters:
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.
Throws:
javax.xml.transform.TransformerException