在XSL里执行类似for(i=0;i〈x;i++)的循环

** 在XSL里执行类似for(i=0;i<x;i++)的循环 **

http://lucky_elove.www1.dotnetplayground.com/

在XSL里,可以实现与一般编程语言类似的for循环的功能,下面就是实现这一功能的例子:

查看例子

XSLLoop.xml

孟子E章

XSLLoop.xsl

,

结果如下:

0 , 2 , 4 , 6 , 8 , 10 , 12 , 14 , 16 , 18 , 20 , 22 , 24 , 26 , 28 , 30 , 32 , 34

Published At
Categories with Web编程
Tagged with
comments powered by Disqus