com.jclark.xsl.sax

Class XSLProcessorImpl

Implemented Interfaces:
Cloneable, Parser, ParameterSet, XSLProcessor

public class XSLProcessorImpl
extends java.lang.Object
implements XSLProcessor, Cloneable, ParameterSet

An XSLT Processor

Method Summary

Object
clone()
Object
getParameter(Name name)
(package private) void
handleXSLException(XSLException e)
void
loadStylesheet(InputSource sheetSource)
load (and compile) the stylesheet
void
parse(InputSource source)
load the input document into a (xslt) object model, and run the transform
void
parse(String systemId)
run the transform
(package private) void
phase(int n)
void
setContentHandler(ContentHandler handler)
we can have either an OutputMethodHandler, a ContentHandler or DocumentHandler, not two or three
void
setDTDHandler(DTDHandler handler)
SAX 1 Parser API
void
setDebugger(String name, ActionDebugTarget debugger)
sets a debugging target
void
setDocumentHandler(DocumentHandler handler)
we can have either an OutputMethodHandler, or a DocumentHandler, not both
void
setEntityResolver(EntityResolver resolver)
SAX 1 PArser API
void
setErrorHandler(ErrorHandler handler)
SAX 1 PArser API
void
setLocale(Locale locale)
SAX 1 Parser API
void
setOutputMethodHandler(OutputMethodHandler handler)
we can have either an OutputMethodHandler, or a DocumentHandler, not both
void
setParameter(String name, Object obj)
void
setParser(Parser parser)
use same parser for input and styleSheet
void
setParser(Parser sourceParser, Parser sheetParser)
void
setParser(XMLProcessorEx loader)
void
setSaxExtensionFilter(String name, SaxFilterMaker xrap)
sets an extension element processor for XRAP

Method Details

clone

public Object clone()
Specified by:
clone in interface XSLProcessor

getParameter

public Object getParameter(Name name)
Specified by:
getParameter in interface ParameterSet

handleXSLException

(package private)  void handleXSLException(XSLException e)
            throws SAXException,
                   IOException

loadStylesheet

public void loadStylesheet(InputSource sheetSource)
            throws SAXException,
                   IOException
load (and compile) the stylesheet
Specified by:
loadStylesheet in interface XSLProcessor

parse

public void parse(InputSource source)
            throws SAXException,
                   IOException
load the input document into a (xslt) object model, and run the transform

parse

public void parse(String systemId)
            throws SAXException,
                   IOException
run the transform

phase

(package private)  void phase(int n)

setContentHandler

public void setContentHandler(ContentHandler handler)
we can have either an OutputMethodHandler, a ContentHandler or DocumentHandler, not two or three

setDTDHandler

public void setDTDHandler(DTDHandler handler)
SAX 1 Parser API

setDebugger

public void setDebugger(String name,
                        ActionDebugTarget debugger)
sets a debugging target
Specified by:
setDebugger in interface XSLProcessor

setDocumentHandler

public void setDocumentHandler(DocumentHandler handler)
we can have either an OutputMethodHandler, or a DocumentHandler, not both

setEntityResolver

public void setEntityResolver(EntityResolver resolver)
SAX 1 PArser API

setErrorHandler

public void setErrorHandler(ErrorHandler handler)
SAX 1 PArser API

setLocale

public void setLocale(Locale locale)
            throws SAXException
SAX 1 Parser API

setOutputMethodHandler

public void setOutputMethodHandler(OutputMethodHandler handler)
we can have either an OutputMethodHandler, or a DocumentHandler, not both
Specified by:
setOutputMethodHandler in interface XSLProcessor

setParameter

public void setParameter(String name,
                         Object obj)
Specified by:
setParameter in interface XSLProcessor

setParser

public void setParser(Parser parser)
use same parser for input and styleSheet
Specified by:
setParser in interface XSLProcessor

setParser

public void setParser(Parser sourceParser,
                      Parser sheetParser)
Specified by:
setParser in interface XSLProcessor

setParser

public void setParser(XMLProcessorEx loader)

setSaxExtensionFilter

public void setSaxExtensionFilter(String name,
                                  SaxFilterMaker xrap)
sets an extension element processor for XRAP
Specified by:
setSaxExtensionFilter in interface XSLProcessor