using xml attribute value in two different elements in result xml using XSLT

Voice

New Member
i have a Source XML which looks like this \[code\]<parent> <child id="123456">Child Name </child> <image name="child.jpg"></parent>\[/code\]The destination XML should be\[code\]<data> <person id="123456"> <name>Child Name</name> </person> <relation id="123456"> <filename>child.jpg</filename> </relation></data>\[/code\]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.
 
Back
Top