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

परिभाषा और उपयोग

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

व्याकरण

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

गुण

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

इस्तेमाल

उदाहरण 1

जब प्रोसेसर एक car एलीमेंट ढूंढता है, तो नाम "description" के टेम्पलेट को आह्वान करता है:

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