adding elements in XSLT 1.0
For my purposes, i am limited to only using Xalan, which is a XSlT 1.0 processor. My question is there a way of numbering a specific element ,say <a>, that is a child of a given node, <b> and give it its own number.
So this could be a possible input:
<b>
<a>
<a>
<a>
<c>
<d>
<a>
<a>
<c>
<a>
</b>
And this would be my desired output:
<b>
<x num="1">
<x num="2">
<x num="3">
<x num="4">
<x num="5">
<x num="6">
</b>
Thanks in advance to anyone that can help out!!
|