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>