com.jclark.xsl.sax
Class XMLProcessorImpl
java.lang.Object
|
+--com.jclark.xsl.sax.XMLProcessorImpl
- All Implemented Interfaces:
- XMLProcessor, XMLProcessorEx
- public class XMLProcessorImpl
- extends java.lang.Object
- implements XMLProcessorEx
parses a source doc or stylesheet into our own DOM like structure
Constructor Summary |
XMLProcessorImpl(org.xml.sax.Parser parser)
construct with a SAX1 parser we may wish to re-use for
resolving e.g xsl:include |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLProcessorImpl
public XMLProcessorImpl(org.xml.sax.Parser parser)
- construct with a SAX1 parser we may wish to re-use for
resolving e.g xsl:include
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
- Specified by:
setErrorHandler
in interface XMLProcessorEx
- Following copied from interface:
com.jclark.xsl.sax.XMLProcessorEx
- Parameters:
ErrorHandler
- a SAX errorHandler where we report parse errors
load
public Node load(org.xml.sax.InputSource source,
int documentIndex,
LoadContext context,
NameTable nameTable)
throws java.io.IOException,
XSLException
- parse the xml stream at
source
building an
object model of all its nodes
- Specified by:
load
in interface XMLProcessorEx
- Returns:
- the document root
load
public Node load(java.net.URL url,
int documentIndex,
LoadContext context,
NameTable nameTable)
throws java.io.IOException,
XSLException
- Description copied from interface:
XMLProcessor
- construct an object model from the XML source at the
given URL.
- Specified by:
load
in interface XMLProcessor
- Returns:
- the document root
createResult
public Result createResult(Node baseNode,
int documentIndex,
LoadContext loadContext,
Node[] rootNode)
throws XSLException
- Specified by:
createResult
in interface XMLProcessor