我想在使用XSLT 1.0 XML的输出来获得一个序列号。
`<a>
<b>
<c>
<d>text1</d>
</c>
<c>
<d>text2</d>
</c>
</b>
<b>
<c>
<d>text3</d>
</c>
<c>
<d>text4</d>
</c>
</b>
</a>`
输出XML应该是这样的
` <result>
<seq>1</seq>
<r>text1</r>
<seq>2</seq>
<r>text2</r>
<seq>3</seq>
<r>text3</r>
<seq>4</seq>
<r>text4</r>
</result> `.
任何建议请。