xsl:call-template

Instantiates a named template.

Format

<xsl:call-template name="template_name">
               
  [<xsl:with-param/>]
               
</xsl:apply-templates>
               

            

Description

The name attribute is required and the value must be a qualified name. It specifies the name of the template you want to instantiate. The template you want to instantiate must specify the name attribute with a value identical to template_name.

Unlike the xsl:apply-templates instruction, the xsl:call-template instruction does not change the current node.

Tip

 

You can create an xsl:call-template element automatically using the XSLT mapper.

 
Free Stylus Studio XML Training: