I want to have some modificatons over one xml i have try to use xslt sentences but I am unable to do it, after copying I delete the children nodes when I try to put the changes. having the xml posted:
`
<tree>
<sublevel>
<definition>subnetting</definition>
<status>availabe</status>
<categories>
<category>
<label>IPV4</label>
<attributes>
<attribute>
<label>MASK</label>
<value>/24</value>
</attribute>
<attribute>
<label>STARTING_IP</label>
<value>10.0.0.1</value>
</attribute>
<attribute>
<label>Type</label>
<value>4</value>
</attribute>
</attributes>
</category>
</categories>
<identifier>subnetworkipv4correct</identifier>
</sublevel>
</tree>
I want to use one xslt to perform the output:
`
<tree>
<sublevel>
<definition>subnetting</definition>
<status>availabe</status>
<origen>template</origen>
<categories>
<category>
<label>IP</label>
<attributes>
<attribute>
<label>Mask</label>
<value>/24</value>
</attribute>
<attribute>
<label>START</label>
<value>10.0.0.1</value>
</attribute>
<attribute>
<label>Version</label>
<value>4</value>
</attribute>
</attributes>
</category>
</categories>
<identifier>subnetworkipv4correct</identifier>
</sublevel>
</tree>
`
I have test a lot of templates but i am unable to do it.