Package org.apache.xalan.extensions
Class XSLProcessorContext
java.lang.Object
org.apache.xalan.extensions.XSLProcessorContext
Provides transformer context to be passed to an extension element.
- Author:
- Sanjiva Weerawarana (sanjiva@watson.ibm.com)
-
Constructor Summary
ConstructorsConstructorDescriptionXSLProcessorContext
(TransformerImpl transformer, Stylesheet stylesheetTree) Create a processor context to be passed to an extension. -
Method Summary
Modifier and TypeMethodDescriptionGet the current context node.getMode()
Get the current mode being executed.Get the root of the source tree being executed.Get the Stylesheet being executed.Get the transformer.void
outputToResultTree
(Stylesheet stylesheetTree, Object obj) Output an object to the result tree by doing the right conversions.
-
Constructor Details
-
XSLProcessorContext
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
-
-
Method Details
-
getTransformer
Get the transformer.- Returns:
- the transformer instance for this context
-
getStylesheet
Get the Stylesheet being executed.- Returns:
- the Stylesheet being executed.
-
getSourceTree
Get the root of the source tree being executed.- Returns:
- the root of the source tree being executed.
-
getContextNode
Get the current context node.- Returns:
- the current context node.
-
getMode
Get the current mode being executed.- Returns:
- the current mode being executed.
-
outputToResultTree
public void outputToResultTree(Stylesheet stylesheetTree, Object obj) throws TransformerException, MalformedURLException, FileNotFoundException, 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. - Throws:
TransformerException
FileNotFoundException
IOException
MalformedURLException
-