鍏堢湅涓緥瀛愶細(xì)
<xsl:call-template name="footer">
<xsl:with-param name="date" select="@lastupdate"/>
</xsl:call-template>
<xsl:template name="footer">
<xsl:param name="date">today</xsl:param>
<hr/>
<xsl:text>Last update: </xsl:text>
<xsl:value-of select="$date"/>
</xsl:template>
瀵箈ml妯℃澘 鏉ヨ錛宯ame灞炴ф槸寰堝叧閿殑 call-template /apply-template 鐨刵ame蹇呴』瑕佸拰妯℃澘鐨刵ame
鐩稿搴斻傛ā鏉跨浉褰撲簬涓涓嚱鏁幫紝鍙互鏆傛椂榪欎箞鐪嬨傝宯ame鐩稿綋浜庡嚱鏁板悕縐版妸銆?/pre>
鍦╟all-template涓?浣跨敤xsl:with-param 鐩稿綋浜庡嚱鏁板弬鏁拌緭鍏?/pre>
鑰屽弬鏁板0鏄庣浉褰撳氨鏄湪xsl:template鐨?xsl:param
璇村埌xsl:variable銆?/pre>
鍙互鐢?lt;xsl:variable name="ShowDepth"><璁$畻鐨勫?gt;</xsl:variable>鏉ュ0鏄?/pre>
鐩稿綋浜巆涓殑 const 鍥犱負(fù)鍙橀噺涓鏃﹀0鏄庡氨鏃犳硶鍐嶈鏀瑰彉銆?/pre>
瀵逛簬xsl:param鍜寈sl:variable 閮藉彲浠ョ敤 $+name 鏉ョ洿鎺ラ夋嫨姣斿
<xsl:value-of select="$date"/> 灝辨槸閫夋嫨date鍙橀噺鎴栬呭弬鏁?/pre>
鍙橀噺鍜屽弬鏁幫紝閮芥槸鏈夊0鏄庤寖鍥寸殑 榪欑偣鍜岃璦涓殑閬撶悊涓鏍楓?/pre>
鏈鍚?font size="4">鏈鏈閲嶈涓鐐?:xsl鐨剉ariable鏄父閲忎笉鑳藉啀鏀瑰彉
涓嶈琚畠鐨勫悕縐拌糠鎯戙?/em>

]]>