XSLT <xsl: call-template>
Definicja i Wykorzystanie
<Xsl: call-template> można nazwać imieniem szablonu.
gramatyka
<xsl:call-template name="templatename">
<!-- Content:xsl:with-param* -->
</xsl:call-template>
<!-- Content:xsl:with-param* -->
</xsl:call-template>
nieruchomość
属性 | 值 | 描述 |
---|---|---|
name | templatename | 必需。规定被调用的模板名称。 |
Przykład 1
Gdy przewodnik znaleźć element samochodu, połączenie z "opis" wzoru:
<xsl:template match="car">
<xsl:call-template name="description"/>
</xsl:template>
<xsl:call-template name="description"/>
</xsl:template>
Kompletna instrukcja XSLT element odniesienia