[xsl] [XSL 1.0] Copy node into of other

Subject: [xsl] [XSL 1.0] Copy node into of other
From: "Jimenez, Luis" <Luis.Jimenez@xxxxxxxxx>
Date: Sat, 6 Nov 2010 10:24:33 -0400
Hi All,

as a node can be copied to another location within the XML?

* Processor XSLT 1.0

My XML file:

<root>
 <customer>
   <personal>
     <name>Luis</name>
     <phone>1234567</phone>
     <age>45</age>
   </personal>

   <occupation>
     <position>engineer</position>
     <time>5 years</years>
   </occupation>
 </customer>
</root>

Desired output: The node <position> is copied into customer/personal

<root>
 <customer>
   <personal>
     <name>Luis</name>
     <phone>1234567</phone>
     <age>45</age>
     <position>engineer</position>
   </personal>

   <occupation>
     <position>engineer</position>
     <time>5 years</years>
   </occupation>
 </customer>
</root>


thanks for your help,


Luis Fdo.

Current Thread