jd.xml.xslt.template
Class CallTemplate

java.lang.Object
  extended byjd.xml.xslt.template.Template
      extended byjd.xml.xslt.template.CallTemplate

public class CallTemplate
extends Template

The call-template instruction.

 <xsl:call-template name = qname>
      <!-- Content: xsl:with-param* -->
 </xsl:call-template>
 


Constructor Summary
CallTemplate(String templateName, Variable[] params, boolean isRecursive)
          Create a CallTemplate object.
 
Method Summary
 void accept(TemplateVisitor visitor)
           
 String getTemplateName()
          Return the template name.
 void instantiate(XsltContext context, ResultBuilder resultBuilder)
          Instantiate the called template.
 void setTemplateRule(TemplateRule rule)
          Set the template rule.
 
Methods inherited from class jd.xml.xslt.template.Template
addChild, addNext, allowTailRecursion, getNext, getParent, instantiate, instantiate, toString, transferRelations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CallTemplate

public CallTemplate(String templateName,
                    Variable[] params,
                    boolean isRecursive)
Create a CallTemplate object.

Parameters:
isRecursive - is the call recursive?
Method Detail

accept

public void accept(TemplateVisitor visitor)
Specified by:
accept in class Template

getTemplateName

public String getTemplateName()
Return the template name.


setTemplateRule

public void setTemplateRule(TemplateRule rule)
Set the template rule. This method is called after the stylesheet is parsed. Now all CallTemplate instructions are initialized with their associated template rule.


instantiate

public void instantiate(XsltContext context,
                        ResultBuilder resultBuilder)
Instantiate the called template.

Specified by:
instantiate in class Template