copy all xml nodes and rename few in them using XSLT 2

RitualMast3r

New Member
I have an XML, in that XML i have an element which itself have several elements, now what i want is copy every in and change tag name.XML Structure:\[code\]<mothertag> <atag> asdfasdfa </atag> <storybody> <p>sometext here<URI ref="http://google.com" /> some more text</p> </storybody></mothertag>\[/code\][*]I want to change name \[code\]<storybody>\[/code\] to \[code\]<body>\[/code\], [*]everything else should be as it is and change the \[code\]<URI>\[/code\] to \[code\]<a>\[/code\]what i am doing for rest of the document is defining the templates and applying one by one. now i encountered this one which is needed to copied as it is with few changes and name changed.
 
Back
Top