public class XalanTransformState extends Object implements TransformState
Constructor and Description |
---|
XalanTransformState() |
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.
|
void |
resetState(Transformer transformer) |
void |
setCurrentNode(Node n) |
public void setCurrentNode(Node n)
setCurrentNode
in interface org.apache.xml.serializer.TransformStateSetter
TransformStateSetter.setCurrentNode(Node)
public void resetState(Transformer transformer)
resetState
in interface org.apache.xml.serializer.TransformStateSetter
TransformStateSetter.resetState(Transformer)
public ElemTemplateElement getCurrentElement()
TransformState
Please note that the ElemTemplateElement returned may be in a default template, and thus may not be defined in the stylesheet.
getCurrentElement
in interface TransformState
TransformState.getCurrentElement()
public Node getCurrentNode()
TransformState
getCurrentNode
in interface TransformState
TransformState.getCurrentNode()
public ElemTemplate getCurrentTemplate()
TransformState
Please note that the ElemTemplate returned may be a default template, and thus may not have a template defined in the stylesheet.
getCurrentTemplate
in interface TransformState
TransformState.getCurrentTemplate()
public ElemTemplate getMatchedTemplate()
TransformState
Please note that the ElemTemplate returned may be a default template, and thus may not have a template defined in the stylesheet.
getMatchedTemplate
in interface TransformState
TransformState.getMatchedTemplate()
public Node getMatchedNode()
TransformState
getMatchedNode
in interface TransformState
TransformState.getMatchedNode()
public org.w3c.dom.traversal.NodeIterator getContextNodeList()
TransformState
getContextNodeList
in interface TransformState
TransformState.getContextNodeList()
public Transformer getTransformer()
TransformState
getTransformer
in interface TransformState
TransformState.getTransformer()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.