com.jclark.xsl.sax

Class XSLProcessorImpl

public class XSLProcessorImpl extends Object implements XSLProcessor, Cloneable, ParameterSet

An XSLT Processor
Method Summary
Objectclone()
ObjectgetParameter(Name name)
voidhandleXSLException(XSLException e)
voidloadStylesheet(InputSource sheetSource)
load (and compile) the stylesheet
voidparse(String systemId)
run the transform
voidparse(InputSource source)
load the input document into a (xslt) object model, and run the transform
voidphase(int n)
voidsetContentHandler(ContentHandler handler)
we can have either an OutputMethodHandler, a ContentHandler or DocumentHandler, not two or three
voidsetDebugger(String name, ActionDebugTarget debugger)
sets a debugging target
voidsetDocumentHandler(DocumentHandler handler)
we can have either an OutputMethodHandler, or a DocumentHandler, not both
voidsetDTDHandler(DTDHandler handler)
SAX 1 Parser API
voidsetEntityResolver(EntityResolver resolver)
SAX 1 PArser API
voidsetErrorHandler(ErrorHandler handler)
SAX 1 PArser API
voidsetLocale(Locale locale)
SAX 1 Parser API
voidsetOutputMethodHandler(OutputMethodHandler handler)
we can have either an OutputMethodHandler, or a DocumentHandler, not both
voidsetParameter(String name, Object obj)
voidsetParser(Parser sourceParser, Parser sheetParser)
voidsetParser(XMLProcessorEx loader)
voidsetParser(Parser parser)
use same parser for input and styleSheet
voidsetSaxExtensionFilter(String name, SaxFilterMaker xrap)
sets an extension element processor for XRAP

Method Detail

clone

public Object clone()

getParameter

public Object getParameter(Name name)

handleXSLException

void handleXSLException(XSLException e)

loadStylesheet

public void loadStylesheet(InputSource sheetSource)
load (and compile) the stylesheet

parse

public void parse(String systemId)
run the transform

parse

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

phase

void phase(int n)

setContentHandler

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

setDebugger

public void setDebugger(String name, ActionDebugTarget debugger)
sets a debugging target

setDocumentHandler

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

setDTDHandler

public void setDTDHandler(DTDHandler handler)
SAX 1 Parser API

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)
SAX 1 Parser API

setOutputMethodHandler

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

setParameter

public void setParameter(String name, Object obj)

setParser

public void setParser(Parser sourceParser, Parser sheetParser)

setParser

public void setParser(XMLProcessorEx loader)

setParser

public void setParser(Parser parser)
use same parser for input and styleSheet

setSaxExtensionFilter

public void setSaxExtensionFilter(String name, SaxFilterMaker xrap)
sets an extension element processor for XRAP