I want to get a sequence number in the output of the xml using xslt 1.0.
`<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>`
The output xml should be like
` <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> `.
Any suggestions please.