Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

<xsl:call-template> Element

Invokes a template by name.

<xsl:call-template
  name = QName
</xsl:call-template>
name
Required. The Qualified Names name of the template to be invoked.

The <xsl:call-template> enables you to invoke a named template — that is, an <xsl:template> element — that has an assigned name attribute. If an <xsl:template> element has a name attribute, it might, but need not, also have a match attribute. An <xsl:call-template> element invokes a template by name; it has a required name attribute that identifies the template to be invoked. Unlike <xsl:apply-templates>, <xsl:call-template> does not change the current node or the current node-list.

An error occurs if a style sheet contains more than one template with the same name and with the same import precedence.

An <xsl:call-template> element can contain any number of <xsl:with-param> elements. However, it cannot contain other XSLT elements.

The following topic provides an example of <xsl:call-template>.




Build Date:

2012-08-02
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.