G
gsoftwares
HI Gurus,
I have xml file in this format
<hierarchy>
<entity>
<contents>
<entity>
</entity>
</contents>
</entity>
<entity>
<contents>
<entity>
</entity>
</contents>
</entity>
</hierarchy>
I want to have attribute level for all <entity> node
like
<entity level=1>
<contents>
<entity level=2>
</entity>
</contents>
</entity>
<entity level=1>
<contents>
<entity level=2>
</entity>
</contents>
</entity>
Can someone help to get this using xslt.
thanks
gbk
I have xml file in this format
<hierarchy>
<entity>
<contents>
<entity>
</entity>
</contents>
</entity>
<entity>
<contents>
<entity>
</entity>
</contents>
</entity>
</hierarchy>
I want to have attribute level for all <entity> node
like
<entity level=1>
<contents>
<entity level=2>
</entity>
</contents>
</entity>
<entity level=1>
<contents>
<entity level=2>
</entity>
</contents>
</entity>
Can someone help to get this using xslt.
thanks
gbk