creating nested structures

Here should go questions about transforming XML with XSLT and FOP.
droomdp
Posts: 9
Joined: Fri Jan 30, 2009 6:57 pm

creating nested structures

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: creating nested structures

Post 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
George Cristian Bina
Post Reply