org.exolab.adaptx.xslt
Class XSLTReader
- ErrorObserver
A class for reading an XSLT stylesheet from a stream or file.
$Revision: 3925 $ $Date: 2003-10-01 10:50:32 +0200 (Wed, 01 Oct 2003) $
Modifcations
19990804: Mike Los (comments with MEL)
- modified #readDocument to close InputStream
XSLTReader
public XSLTReader()
Creates a new Default XSLTReader
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(InputSource source)
throws XSLException,
java.io.IOException
Reads an XSL stylesheet from the given uri (filename)
read
public XSLTStylesheet read(Node node,
String filename)
throws XSLException
Reads an XSL stylesheet using the given DOM Node
node
- the DOM Node that contains the Stylesheetfilename
- 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
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
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
read
public XSLTStylesheet read(URILocation location)
throws XSLException,
java.io.IOException
Reads an XSLStylesheet from the given URILocation
location
- the URILocation of the XSLT stylesheet
setEntityResolver
public void setEntityResolver(EntityResolver resolver)
Sets an EntityResolver to be passed to the underlying
XML parser. The EntityResolver will be passed to any
SAX parser. If no SAX parser is utilized during the
reading of the stylesheet, the resolver will be ignored.
resolver
- the EntityResolver to use
setURIResolver
public void setURIResolver(URIResolver resolver)
Sets the URIResolver for this XSLReader
resolver
- the URIResolver this XSLReader should
use for resolving all URIs.