com.icl.saxon.style
Class TemplateExpander
java.lang.Object
|
+--com.icl.saxon.handlers.NodeHandler
|
+--com.icl.saxon.style.TemplateExpander
- public class TemplateExpander
- extends NodeHandler
Handle a node in the source document, by applying the contents of the relevant
template in the style sheet. An instance of TemplateExpander is created for each
xsl:template in the style sheet; the node parameter identifies the
xsl:template element.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
template
protected XSLTemplate template
TemplateExpander
public TemplateExpander(XSLTemplate node)
- Create a Template Expander, identifying the template to be expanded
- Parameters:
node
- the xsl:template element in the stylesheet
start
public void start(NodeInfo e,
Context context)
throws org.xml.sax.SAXException
- Process a node in the source document
- Overrides:
start
in class NodeHandler
- Following copied from class:
com.icl.saxon.handlers.NodeHandler
- Parameters:
node
- The NodeInfo object for the current node.- Throws:
org.xml.sax.SAXException
- Aborts the parse- See Also:
NodeInfo
end
public void end(NodeInfo e,
Context context)
throws org.xml.sax.SAXException
getTemplate
public XSLTemplate getTemplate()
- Get the associated template