com.smallx.xml.xslt
Interface XSLTCompiler

All Known Implementing Classes:
CompilerImpl

public interface XSLTCompiler

This interface represents an XSLT compiler that constructs MTraformation instances from XSLT source documents.


Method Summary
 Transformation compile(Element root)
          Compiles a transformation.
 DocumentLoader getDocumentLoader()
           
 Infoset getInfoset()
          Returns the infoset associated with this compiler.
 MessageHandler getMessageHandler()
           
 java.util.Iterator getTargetVersions()
          Returns the target XSLT versions supported by this compiler.
 java.lang.String getVendor()
          Returns the vendor of this compiler.
 java.lang.String getVersion()
          Returns the version of this compiler.
 void setDocumentLoader(DocumentLoader loader)
           
 void setInfoset(DocumentLoader docLoader, Infoset infoset)
          Sets the document loader to be used to loader stylesheets and as a default for the resulting transformation's execution.
 void setMessageHandler(MessageHandler handler)
           
 

Method Detail

getTargetVersions

public java.util.Iterator getTargetVersions()
Returns the target XSLT versions supported by this compiler.


getVersion

public java.lang.String getVersion()
Returns the version of this compiler.


getVendor

public java.lang.String getVendor()
Returns the vendor of this compiler.


setInfoset

public void setInfoset(DocumentLoader docLoader,
                       Infoset infoset)
Sets the document loader to be used to loader stylesheets and as a default for the resulting transformation's execution.


compile

public Transformation compile(Element root)
                       throws XMLException
Compiles a transformation.

Parameters:
root - An element the transformation.
Throws:
MXSLTException - Thrown when there is a static error in compiling the stylesheet.
XMLException

getInfoset

public Infoset getInfoset()
Returns the infoset associated with this compiler.


getDocumentLoader

public DocumentLoader getDocumentLoader()

setDocumentLoader

public void setDocumentLoader(DocumentLoader loader)

getMessageHandler

public MessageHandler getMessageHandler()

setMessageHandler

public void setMessageHandler(MessageHandler handler)