org.apache.xalan.extensions
Class XSLProcessorContext
java.lang.Object
org.apache.xalan.extensions.XSLProcessorContext
public class XSLProcessorContext
extends java.lang.Object
Provides transformer context to be passed to an extension element.
- Sanjiva Weerawarana (sanjiva@watson.ibm.com)
XSLProcessorContext
public XSLProcessorContext(TransformerImpl transformer,
Stylesheet stylesheetTree)
Create a processor context to be passed to an extension.
(Notice it is a package-only constructor).
transformer
- non-null transformer instancestylesheetTree
- The owning stylesheet
getContextNode
public Node getContextNode()
Get the current context node.
- the current context node.
getMode
public QName getMode()
Get the current mode being executed.
- the current mode being executed.
getSourceTree
public Node getSourceTree()
Get the root of the source tree being executed.
- the root of the source tree being executed.
getStylesheet
public Stylesheet getStylesheet()
Get the Stylesheet being executed.
- the Stylesheet being executed.
getTransformer
public TransformerImpl getTransformer()
Get the transformer.
- the transformer instance for this context
outputToResultTree
public void outputToResultTree(Stylesheet stylesheetTree,
Object obj)
throws TransformerException,
java.net.MalformedURLException,
java.io.FileNotFoundException,
java.io.IOException
Output an object to the result tree by doing the right conversions.
This is public for access by extensions.
stylesheetTree
- The owning stylesheetobj
- the Java object to output. If its of an X type
then that conversion is done first and then sent out.
TransformerException
-
Copyright B) 2004 Apache XML Project. All Rights Reserved.