Page 1 of 1

creating nested structures

Posted: Mon Jul 13, 2009 2:04 pm
by droomdp
How can I do the following, using XSLT:

source XML:

<elements>
<elementA/>
<elementB/>
<elementA/>
<elementB/>
<elementC/>
<elements>

destination XML:
<elementsZ>
<elementsX>
<elementA/>
<elementB/>
<elementA/>
<elementB/>
<elementsX>
<elementC/>
<elementsZ>

When I use a "for-each... elementA"
I get the elementA-elements in the right orther,
but how do I get de following elementB, with it ?

Kind Regards,
Droom

Re: creating nested structures

Posted: Mon Jul 13, 2009 4:23 pm
by george
Hi,

I do not understand your problem and I cannot see the link between your input and your output. Maybe you can try again, eventually also showing your XSLT that you tried so far.

Regards,
George