XSLT <xsl:call-template> एलीमेंट

व्याख्या और उपयोग

<xsl:call-template> एलीमेंट एक निर्दिष्ट टैम्पलेट को बुला सकता है。

व्याकरण

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

गुण

गुण मूल्य वर्णन
name templatename अनिवार्य।बुलाया गया टैम्पलेट का नाम निर्धारित करता है。

उदाहरण

उदाहरण 1

जब प्रोसेसिंग प्रोग्राम "description" नाम के टैम्पलेट को बुला लेता है जब उसे car एलीमेंट मिलता है:

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