XSL: inserting a new element below a sibling
Posted: Mon Apr 04, 2005 3:59 pm
Hi,
I need to be able to insert a new element which will be a sibling an an existing element.
The xml is too large to post but i will provide an exampole for this purpose. The XML structuire would be simular to this:
<task>
<temp>
</temp>
<trial>
</trial>
<floppy>
</floppy>
<spain>
</spain>
</task>
what i need to be able to do is add a new element below the floppy element and above the spain element.
The xsl i have only inserts it immediately below the <task> element.
Thanks for any help.
I need to be able to insert a new element which will be a sibling an an existing element.
The xml is too large to post but i will provide an exampole for this purpose. The XML structuire would be simular to this:
<task>
<temp>
</temp>
<trial>
</trial>
<floppy>
</floppy>
<spain>
</spain>
</task>
what i need to be able to do is add a new element below the floppy element and above the spain element.
The xsl i have only inserts it immediately below the <task> element.
Thanks for any help.