Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

XSLT <xsl:call-template> elements


May 28, 2021 XSL T


Table of contents


XSLT -lt;xsl: call-template-gt; element

The XSLT-lt;xsl:call-template-gt; element calls the template by name.


XSLT <xsl:call-template> elements Complete XSLT element reference manual

Definitions and usages

The call-template element can call a specified template.


Grammar

<xsl:call-template name="templatename">

<!-- Content:xsl:with-param* -->

</xsl:call-template>

Property

Attributes value describe
name templatename Required.The template name that is called called.

Instance 1

When the handler finds a car element, it calls a template named "description":

<xsl:template match="car">
<xsl:call-template name="description"/>
</xsl:template>

XSLT <xsl:call-template> elements Complete XSLT element reference manual