C
Claudio Jolowicz
Suppose you have this document:
<root>
<node id="1">
<node id="4"/>
<node id="5"/>
</node>
<node id="2"/>
<node id="3"/>
</root>
How to write an XSLT stylesheet to make the node with id=5 a child of
the node with id=2?
The resulting document should look as follows:
<root>
<node id="1">
<node id="4"/>
</node>
<node id="2">
<node id="5"/>
</node>
<node id="3"/>
</root>
Thanks,
Claudio
<root>
<node id="1">
<node id="4"/>
<node id="5"/>
</node>
<node id="2"/>
<node id="3"/>
</root>
How to write an XSLT stylesheet to make the node with id=5 a child of
the node with id=2?
The resulting document should look as follows:
<root>
<node id="1">
<node id="4"/>
</node>
<node id="2">
<node id="5"/>
</node>
<node id="3"/>
</root>
Thanks,
Claudio