+ -
当前位置:首页 → 问答吧 → XSLT中一个自增长的数字(今天在线等)

XSLT中一个自增长的数字(今天在线等)

时间:2011-03-01

来源:互联网


生成后的XML格式如下:
XML code

<item id="1">
    <t105_01>ID</t105_01>
</item>    
<item id="2">
    <t105_01>ID</t105_01>
</item>
    .
    .
    .
<item id="n">
    <t105_01>ID</t105_01>
</item>



意思就是有多少行<t105_01>ID</t105_01>
就生成几个<item id="n">其中的n就是个数。

请问这个自增长的n在xslt中用什么函数生成?或者有别的什么方法解决这个问题?

作者: hejialin666   发布时间: 2011-03-01

http://dotnet.aspx.cc/article/4052da03-51e0-464b-8418-3c1354920f8f/read.aspx

作者: yhtapmys   发布时间: 2011-03-01

http://topic.csdn.net/u/20100524/12/543a97b8-7dbc-4cd1-9067-39f054b53a8e.html

作者: yhtapmys   发布时间: 2011-03-01