XSLT <xsl: call-template>
❮ Toàn bộ tham chiếu phần tử XSLT
Định nghĩa và Cách sử dụng
Phần tử <xsl: call-template> gọi một mẫu đã đặt tên.
Cú pháp
<xsl:call-template name="templatename">
<!-- Content:xsl:with-param* -->
</xsl:call-template>
Thuộc tính
Attribute | Value | Description |
---|---|---|
name | templatename | Required. Specifies the name of the template to be called |
ví dụ 1
Gọi một mẫu có tên "mô tả" khi bộ xử lý tìm thấy phần tử ô tô:
<xsl:template match="car">
<xsl:call-template name="description"/>
</xsl:template>
❮ Toàn bộ tham chiếu phần tử XSLT