Xslt 不同节点中元素的序号值
基于计算位于不同节点中的元素名称。我想给出唯一但序列号。 输入数据Xslt 不同节点中元素的序号值,xslt,Xslt,基于计算位于不同节点中的元素名称。我想给出唯一但序列号。 输入数据 <record> `enter code here` <items> <list code="a"> item location </list> <list code="b"> 123 </list> </items> <items> <list cod
<record>
`enter code here` <items>
<list code="a"> item location </list>
<list code="b"> 123 </list>
</items>
<items>
<list code="a"> item location </list>
<list code="b"> 123 </list>
</items>
</record>
`在此处输入代码`
项目位置
123
项目位置
123
期望输出
<record>
<items>
<list code="a"> item location </list>
<list code="b">1 </list>
</items>
<items>
<list code="a"> item location </list>
<list code="b"> 2 </list>
</items>
</record>
项目位置
1.
项目位置
2.
您的输入中的“`enter code here`”是否被认为是错误的?您的输入与昨天的输入非常相似。虽然没有实际的答案,但关于这个问题的评论似乎也大多适用于这里。