Subject:Adding a new sub element to the copied element using XSL Author:Harish Siddartha Date:02 Jun 2009 09:59 PM
I have an input XML like:
<A>
<B></B>
<C></C>
</A>
and want to generate output XML like:
<E>
<A>
<B></B>
<C></C>
<D></D>
</A>
</E>
I need to copy the entire Node Set A using xsl:copy-of and then add a child element to Element A. and also the new Child element D is not present in the input XML.
Can anyone help me here? I am relatively new to XSL
Subject:Adding a new sub element to the copied element using XSL Author:Harish Siddartha Date:07 Jun 2009 11:36 AM
Thanks John.. that worked..
Is it possible to generate
<E>
<A>
<B></B>
<D></D>
<C></C>
</A>
</E>
from the same input XML as mentioned in my first post?
Subject:Adding a new sub element to the copied element using XSL Author:John Bampton Date:08 Jun 2009 11:10 AM
It is clear from these basic questions that you know nothing about XSL. You want other people to do the work for you. Perhaps you should do a tutorial to actually learn it.