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.


Field Summary
protected  XSLTemplate template
           
 
Constructor Summary
TemplateExpander(XSLTemplate node)
          Create a Template Expander, identifying the template to be expanded
 
Method Summary
 void end(NodeInfo e, Context context)
           
 XSLTemplate getTemplate()
          Get the associated template
 void start(NodeInfo e, Context context)
          Process a node in the source document
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

template

protected XSLTemplate template
Constructor Detail

TemplateExpander

public TemplateExpander(XSLTemplate node)
Create a Template Expander, identifying the template to be expanded
Parameters:
node - the xsl:template element in the stylesheet
Method Detail

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