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>