i have a Source XML which looks like this
<parent>
<child id="123456">Child Name
</child>
<image name="child.jpg">
</parent>
The destination XML should be
<data>
<person id="123456">
<name>Child Name</name>
</person>
<relation id="123456">
<filename>child.jpg</filename>
</relation>
</data>
I am using XSLT to transform this. The Problem is that when how can i get the value of id (which is 123456) from in source XML at two different places in Destination XML using XSLT.