<xsl:template match=”/”>
<xsl:call-template name=”loop”>
<xsl:with-param name=”Count”>5</xsl:with-param>
</xsl:call-template>
</xsl:template>
<xsl:template name=”loop”>
<xsl:param name=”Count”/>
http://www.gaodaima.com/34120.htmlXSL中循环的实现_xml
<xsl:if test=”$Count<1″><xsl:value-of select=”‘finish'”/></xsl:if>
<xsl:if test=”$Count>=1″>
<xsl:value-of select=”$Count”/>
<xsl:call-template name=”loop”>
<xsl:with-param name=”Count”><xsl:value-of select=”number($Count)-1″/></xsl:with-param>
</xsl:call-template>
</xsl:if>
</xsl:template>
欢迎大家阅读《XSL中循环的实现_xml》,跪求各位点评,若觉得好的话请收藏本文,by 搞代码