这段XSL代码怎么了?高手帮看看

Programmersheaven 2003-09-27 02:54:45
代码似乎没有任何输出
:::::::::::here call the template:::::::::::

<xsl:call-template name="Rep">
<xsl:with-param name="times" select="88"/>
<xsl:with-param name="sel" select="/Members/@CurrentPage"/>
</xsl:call-template>

:::::::::::::here is template:::::::::::::::
<xsl:template name="Rep">
<xsl:param name="startIndex"/>
<xsl:param name="times"/>
<xsl:param name="sel"/>
<xsl:if test="$startIndex < $times">
<xsl:text disable-output-escaping="yes"><</xsl:text>
option value="<xsl:value-of select="$startIndex + 1"/>"
<xsl:if test="($startIndex + 1)=$sel">checked="checked"</xsl:if>
<xsl:text disable-output-escaping="yes">></xsl:text>
<xsl:value-of select="$startIndex+1"/>
<xsl:text disable-output-escaping="yes"><</xsl:text>/option
<xsl:text disable-output-escaping="yes">></xsl:text>

<xsl:call-template name="Rep">
<xsl:with-param name="startIndex" select="$startIndex + 1"/>
<xsl:with-param name="times" select="$times"/>
<xsl:with-param name="sel" select="$sel"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
...全文
85 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
bluebluewxy 2003-09-27
  • 打赏
  • 举报
回复
agree _17708668(txq)
_17708668 2003-09-27
  • 打赏
  • 举报
回复
我有两点疑问:
1、第一处调用只传递了两个参数,但定义中需要三个。
2、定义中有递归调用,我曾试过递归调用,它不会报错,但没效果。

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧