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 ให้สมบูรณ์