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 |
مثال 1
قم باستدعاء نموذج يسمى "description" عندما يعثر المعالج على عنصر السيارة:
<xsl:template match="car">
<xsl:call-template name="description"/>
</xsl:template>
❮ استكمال مرجع عنصر XSLT