public interface TransformState extends TransformStateSetter
Note that the current stylesheet and root stylesheet can be retrieved from the ElemTemplateElement obtained from either getCurrentElement() or getCurrentTemplate().
This interface contains only getter methods, any setters are in the interface TransformStateSetter which this interface extends.TransformStateSetter
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.traversal.NodeIterator |
getContextNodeList()
Get the current context node list.
|
ElemTemplateElement |
getCurrentElement()
Retrieves the stylesheet element that produced
the SAX event.
|
Node |
getCurrentNode()
This method retrieves the current context node
in the source tree.
|
ElemTemplate |
getCurrentTemplate()
This method retrieves the xsl:template
that is in effect, which may be a matched template
or a named template.
|
Node |
getMatchedNode()
Retrieves the node in the source tree that matched
the template obtained via getMatchedTemplate().
|
ElemTemplate |
getMatchedTemplate()
This method retrieves the xsl:template
that was matched.
|
Transformer |
getTransformer()
Get the TrAX Transformer object in effect.
|
resetState, setCurrentNode
ElemTemplateElement getCurrentElement()
Please note that the ElemTemplateElement returned may be in a default template, and thus may not be defined in the stylesheet.
Node getCurrentNode()
ElemTemplate getCurrentTemplate()
Please note that the ElemTemplate returned may be a default template, and thus may not have a template defined in the stylesheet.
ElemTemplate getMatchedTemplate()
Please note that the ElemTemplate returned may be a default template, and thus may not have a template defined in the stylesheet.
Node getMatchedNode()
org.w3c.dom.traversal.NodeIterator getContextNodeList()
Transformer getTransformer()
Copyright © 2021 JBoss by Red Hat. All rights reserved.