Package org.apache.xalan.transformer
Class XalanTransformState
java.lang.Object
org.apache.xalan.transformer.XalanTransformState
- All Implemented Interfaces:
TransformState
,TransformStateSetter
Before the serializer merge, the TransformState interface was
implemented by ResultTreeHandler.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.traversal.NodeIterator
Get the current context node list.Retrieves the stylesheet element that produced the SAX event.This method retrieves the current context node in the source tree.This method retrieves the xsl:template that is in effect, which may be a matched template or a named template.Retrieves the node in the source tree that matched the template obtained via getMatchedTemplate().This method retrieves the xsl:template that was matched.Get the TrAX Transformer object in effect.void
resetState
(Transformer transformer) Reset the state on the given transformer object.void
Set the current node.
-
Constructor Details
-
XalanTransformState
public XalanTransformState()
-
-
Method Details
-
setCurrentNode
Description copied from interface:TransformStateSetter
Set the current node.- Specified by:
setCurrentNode
in interfaceTransformStateSetter
- Parameters:
n
- The current node.- See Also:
-
resetState
Description copied from interface:TransformStateSetter
Reset the state on the given transformer object.- Specified by:
resetState
in interfaceTransformStateSetter
- See Also:
-
getCurrentElement
Description copied from interface:TransformState
Retrieves the stylesheet element that produced the SAX event.Please note that the ElemTemplateElement returned may be in a default template, and thus may not be defined in the stylesheet.
- Specified by:
getCurrentElement
in interfaceTransformState
- Returns:
- the stylesheet element that produced the SAX event.
- See Also:
-
getCurrentNode
Description copied from interface:TransformState
This method retrieves the current context node in the source tree.- Specified by:
getCurrentNode
in interfaceTransformState
- Returns:
- the current context node in the source tree.
- See Also:
-
getCurrentTemplate
Description copied from interface:TransformState
This method retrieves the xsl:template that is in effect, which may be a matched template or a named template.Please note that the ElemTemplate returned may be a default template, and thus may not have a template defined in the stylesheet.
- Specified by:
getCurrentTemplate
in interfaceTransformState
- Returns:
- the xsl:template that is in effect
- See Also:
-
getMatchedTemplate
Description copied from interface:TransformState
This method retrieves the xsl:template that was matched. Note that this may not be the same thing as the current template (which may be from getCurrentElement()), since a named template may be in effect.Please note that the ElemTemplate returned may be a default template, and thus may not have a template defined in the stylesheet.
- Specified by:
getMatchedTemplate
in interfaceTransformState
- Returns:
- the xsl:template that was matched.
- See Also:
-
getMatchedNode
Description copied from interface:TransformState
Retrieves the node in the source tree that matched the template obtained via getMatchedTemplate().- Specified by:
getMatchedNode
in interfaceTransformState
- Returns:
- the node in the source tree that matched the template obtained via getMatchedTemplate().
- See Also:
-
getContextNodeList
public org.w3c.dom.traversal.NodeIterator getContextNodeList()Description copied from interface:TransformState
Get the current context node list.- Specified by:
getContextNodeList
in interfaceTransformState
- Returns:
- the current context node list.
- See Also:
-
getTransformer
Description copied from interface:TransformState
Get the TrAX Transformer object in effect.- Specified by:
getTransformer
in interfaceTransformState
- Returns:
- the TrAX Transformer object in effect.
- See Also:
-