XSLT copy value from 1 node to another in xml -


i creating xml file using xslt. in newly created xml file m getting following structure

<node1 id=n1>   <node2 id = n2>     <node4>value1</node4>   </node2>    <node3 id= n3>     <node5></node5>   </node3> </node1> 

now issue need copy value of <node4> i.e. "value1" <node5>

i mean <node5>value1</node5> this. can 1 let me know how achieve in xslt?

edit: value1 being generated in loop being applied in xslt on xml. main question how copy value 1 node in case new node being created through xslt node 5 i'll using

<node5>   <xsl:text>     <xsl: select="node1/node2/node4"/>   </xsl:text> </node5> 

this:

<node5>   <xsl:value-of select="/node1/node2/node4"/> </node5> 

sets content of node5 in output xml value contained in node4 in input xml.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -