How to use xslt to transform xml to xml with added nodes

Subject: How to use xslt to transform xml to xml with added nodes
From: Michael Teigman <michael.teigman@xxxxxxxxxxx>
Date: Tue, 14 Sep 1999 12:19:33 -0400
My source xml is of the form:

<a>
texta
</a>

<b>
textb
</b>

<c>
<d e="texte"><f g="textg"/></d>
</c>

I want to transform it to a new xml keeping all the original intact
but adding to <c> such that the new xml would be:

<a>
texta
</a>

<b>
textb
</b>

<c>
<d e="texte"><f g="textg"/></d>
<d e="texth"><f g="texti"/></d>
</c>

I am currently using xt but any parser will do.

Thanks!
     mike


------------------------------------------------------------------------
Any views expressed in this message are those of the individual  sender,
except  where  the  sender  specifically  states them to be the views of
Reuters Ltd.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread