public class XSLProcessorContext extends 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,
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, Object obj) throws TransformerException, MalformedURLException, FileNotFoundException, IOException
stylesheetTree
- The owning stylesheetobj
- the Java object to output. If its of an XTransformerException
FileNotFoundException
IOException
MalformedURLException
Copyright © 2019 JBoss by Red Hat. All rights reserved.