Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.xalan.extensions.XSLProcessorContext
public class XSLProcessorContext
extends java.lang.Object
Constructor Summary | |
|
Method Summary | |
org.w3c.dom.Node |
|
QName |
|
org.w3c.dom.Node |
|
Stylesheet |
|
TransformerImpl |
|
void |
|
public XSLProcessorContext(TransformerImpl transformer, Stylesheet stylesheetTree)
Create a processor context to be passed to an extension. (Notice it is a package-only constructor).
- Parameters:
transformer
- non-null transformer instancestylesheetTree
- The owning stylesheet
public org.w3c.dom.Node getContextNode()
Get the current context node.
- Returns:
- the current context node.
public QName getMode()
Get the current mode being executed.
- Returns:
- the current mode being executed.
public org.w3c.dom.Node getSourceTree()
Get the root of the source tree being executed.
- Returns:
- the root of the source tree being executed.
public Stylesheet getStylesheet()
Get the Stylesheet being executed.
- Returns:
- the Stylesheet being executed.
public TransformerImpl getTransformer()
Get the transformer.
- Returns:
- the transformer instance for this context
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.
- Parameters:
stylesheetTree
- The owning stylesheetobj
- the Java object to output. If its of an Xtype then that conversion is done first and then sent out.