[xsl] copying problem

Subject: [xsl] copying problem
From: "poppe chris" <pc_poppe@xxxxxxxxxxx>
Date: Sun, 14 Mar 2004 12:55:21 +0100

Hello,


I have the following problem, I have a xml document like this
<root>
 <A>..</A>
 <B>..</B>
 <A>..</A>
 <B>..</B>
 <B>..</B>
 <A>..</A>
 <B>..</B>
 <B>..</B>
 <B>..</B>
 <B>..</B>
 <A>..</A>
</root>

In wich i want to delete the last A element and all the B elements between the last and forlast A element. The number of B elements between the A elements is variable, as is the number of A elements (but between each A element there are a number of B elements)

so i need to get an output xml like this:

<root>
 <A>..</A>
 <B>..</B>
 <A>..</A>
 <B>..</B>
 <B>..</B>
 <A>..</A>
</root>

who can help this xslt newbie?
greetings

_________________________________________________________________
Online gamen ? http://www.msn.be/games/online/


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



Current Thread