Copy xml element content to another
Hello.
I need your help. I want to copy an XML element content to another empty element content using XSLT.
Input:
<library>
<book>
<title>Programming</title>
<author>Fernando Redondo</author>
</book>
<magazine>
<title>TAMIYA TOURING CAR</title>
<type></type>
</magazine>
</library>
Output:
<library>
<book>
<title>Programming</title>
<author>Fernando Redondo</author>
</book>
<magazine>
<title>TAMIYA TOURING CAR</title>
<type>Programming</type>
</magazine>
</library>
The idea is to copy <title></title> content to <type></type>.
How is it possible using XSLT?, I can´t find the way to solve it.
Thanks a lot for your help.
|