com.jclark.xsl.sax

Interface XSLProcessor

public interface XSLProcessor extends Parser

typical usage:

    // find an implementation, and construct it
    XSLProcessor xsl = new XSLProcessorImpl();
    xsl.setParser(sourceParser, styleParser);
    xsl.loadStylesheet(someInputSource);

    // maybe clone for re-use ...

    // maybe set some parameters ...

    // attach an output handler
    xsl.setDocumentHandler(someHandler);
    xsl.parse(someOtherInputSource);
   

Method Summary
Objectclone()
clone after loadStylesheet() enables us to re-use a transformer, without recompiling the stylesheet
voidloadStylesheet(InputSource stylesheet)
loadStylesheet must be called before parse but after setParser
voidsetDebugger(String name, ActionDebugTarget xrap)
sets a special kind of extension element processor N.B. this signature will probably change in future releases
voidsetOutputMethodHandler(OutputMethodHandler handler)
set the output target for the transform
voidsetParameter(String name, Object obj)
set the run-time parameters for the stylesheet
voidsetParser(Parser parser)
setParser must be called before any other methods
voidsetParser(Parser sourceParser, Parser stylesheetParser)
set one parser for the stylesheet, and another for the input
voidsetSaxExtensionFilter(String name, SaxFilterMaker xrap)
sets a special kind of extension element processor N.B. this signature will probably change in future releases

Method Detail

clone

public Object clone()
clone after loadStylesheet() enables us to re-use a transformer, without recompiling the stylesheet

loadStylesheet

public void loadStylesheet(InputSource stylesheet)
loadStylesheet must be called before parse but after setParser

setDebugger

public void setDebugger(String name, ActionDebugTarget xrap)
sets a special kind of extension element processor N.B. this signature will probably change in future releases

setOutputMethodHandler

public void setOutputMethodHandler(OutputMethodHandler handler)
set the output target for the transform

setParameter

public void setParameter(String name, Object obj)
set the run-time parameters for the stylesheet

setParser

public void setParser(Parser parser)
setParser must be called before any other methods

setParser

public void setParser(Parser sourceParser, Parser stylesheetParser)
set one parser for the stylesheet, and another for the input

setSaxExtensionFilter

public void setSaxExtensionFilter(String name, SaxFilterMaker xrap)
sets a special kind of extension element processor N.B. this signature will probably change in future releases