net.sf.colle.xml
Class SystemResourceResolver

java.lang.Object
  extended bynet.sf.colle.xml.SystemResourceResolver
All Implemented Interfaces:
javax.xml.transform.URIResolver

public class SystemResourceResolver
extends Object
implements javax.xml.transform.URIResolver

Resolves documents used in transformations. Uses the base transformation to resolve child documents if necessary. This helps resolve some documents that are otherwise unresolveable. Especially for Xalan's broken document() function that will call resolve("{doc}", null). Created: 23 Dec 2001

Version:
$Revision: 1.8 $, $Date: 2004/12/17 07:01:35 $
Author:
Dwayne Schultz

Constructor Summary
SystemResourceResolver(String psBaseTransformation)
          Singleton.
 
Method Summary
static URL getResource(String psPath)
           
 javax.xml.transform.Source resolve(String psHref, String psBase)
          Resolves a source.
static org.jdom.transform.JDOMSource resolve(URL pxURL)
          Resolves a source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SystemResourceResolver

public SystemResourceResolver(String psBaseTransformation)
Singleton.

Method Detail

resolve

public javax.xml.transform.Source resolve(String psHref,
                                          String psBase)
                                   throws javax.xml.transform.TransformerException
Resolves a source.

Specified by:
resolve in interface javax.xml.transform.URIResolver
Throws:
javax.xml.transform.TransformerException

getResource

public static URL getResource(String psPath)

resolve

public static org.jdom.transform.JDOMSource resolve(URL pxURL)
                                             throws FileNotFoundException
Resolves a source.

Throws:
FileNotFoundException