org.exolab.adaptx.xslt
Class XSLTReader
- ErrorObserver
A class for reading an XSLT stylesheet from a stream or file.
Version:
- Keith Visco
XSLTReader
public XSLTReader()
Creates a new Default XSLTReader
addErrorObserver
public void addErrorObserver(ErrorObserver observer)
Adds the given ErrorObserver to the list of ErrorObservers
for this XSLReader
- addErrorObserver in interface ErrorObserverAdapter
observer
- the ErrorObserver to add
getURIResolver
public URIResolver getURIResolver()
Returns the URIResolver being used by this XSLReader
- the URIResolver being used by this XSLReader
read
public XSLTStylesheet read(Document document,
String filename)
throws XSLException
Reads an XSL stylesheet using the given DOM Document
filename
- the full path and filename of the Stylesheet
which is used for resolving relative URIs.
read
public XSLTStylesheet read(String uri)
throws XSLException,
java.io.IOException
Reads an XSL stylesheet from the given uri (filename)
uri
- the file name of the XSLT stylesheet to read
- the new XSLStylesheet
XSLException
-
read
public XSLTStylesheet read(String uri,
String documentBase)
throws XSLException,
java.io.IOException
Reads an XSL stylesheet from the given uri, using the
given documentBase to resolve relative URI's.
uri
- the file name of the XSLT stylesheet to read
- the new XSLStylesheet
XSLException
-
read
public XSLTStylesheet read(URL url)
throws XSLException,
java.io.IOException
Reads the XSLStylesheet pointed to by the given URL
url
- the URL of the stylesheet
- the XSLStylesheet
setURIResolver
public void setURIResolver(URIResolver resolver)
Sets the URIResolver for this XSLReader
resolver
- the URIResolver this XSLReader should
use for resolving all URIs.