XSLT <xsl:call-template>
❮ XSLT ဒြပ်စင် အကိုးအကားကို အပြီးသတ်ပါ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
<xsl:call-template> ဒြပ်စင်သည် အမည်ရှိ နမူနာပုံစံကို ခေါ်သည်။
အထားအသို
<xsl:call-template name="templatename">
<!-- Content:xsl:with-param* -->
</xsl:call-template>
ဂုဏ်တော်
Attribute | Value | Description |
---|---|---|
name | templatename | Required. Specifies the name of the template to be called |
ဥပမာ ၁
ပရိုဆက်ဆာသည် ကားဒြပ်စင်တစ်ခုကို တွေ့ရှိသောအခါ "ဖော်ပြချက်" ဟု အမည်ပေးထားသည့် နမူနာပုံစံကို ခေါ်ဆိုပါ-
<xsl:template match="car">
<xsl:call-template name="description"/>
</xsl:template>
❮ XSLT ဒြပ်စင် အကိုးအကားကို အပြီးသတ်ပါ။