public class XSLProcessorContext
extends java.lang.Object
Constructor and Description |
---|
XSLProcessorContext(TransformerImpl transformer,
Stylesheet stylesheetTree)
Create a processor context to be passed to an extension.
|
Modifier and Type | Method and Description |
---|---|
Node |
getContextNode()
Get the current context node.
|
QName |
getMode()
Get the current mode being executed.
|
Node |
getSourceTree()
Get the root of the source tree being executed.
|
Stylesheet |
getStylesheet()
Get the Stylesheet being executed.
|
TransformerImpl |
getTransformer()
Get the transformer.
|
void |
outputToResultTree(Stylesheet stylesheetTree,
java.lang.Object obj)
Output an object to the result tree by doing the right conversions.
|
public XSLProcessorContext(TransformerImpl transformer, Stylesheet stylesheetTree)
transformer
- non-null transformer instancestylesheetTree
- The owning stylesheetpublic TransformerImpl getTransformer()
public Stylesheet getStylesheet()
public Node getSourceTree()
public Node getContextNode()
public QName getMode()
public void outputToResultTree(Stylesheet stylesheetTree, java.lang.Object obj) throws TransformerException, java.net.MalformedURLException, java.io.FileNotFoundException, java.io.IOException
stylesheetTree
- The owning stylesheetobj
- the Java object to output. If its of an XTransformerException
java.io.FileNotFoundException
java.io.IOException
java.net.MalformedURLException
Copyright � 2014 Apache XML Project. All Rights Reserved.