I need help in following xslt code. I have input as:
<book>
<book1>
<name>abc</name>
<revision>1</revision>
</book1>
<book2>
<name>pqr</name>
<author>def</author>
</book2>
</book>
My expected output as:
<book>
<item>
<name>book1</name>
<value>abc1</value>
</item>
<item>
<name>book2</name>
<value>pqrdef</value>
</item>
</book>
I have tried fetching value for value node using */text() but i get text only from first child. In future I have many such child elements.
Thanks in advance.
Regards, Minakshi