xsl-list
[Top] [All Lists]

copying problem

2004-03-14 04:55:21

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



<Prev in Thread] Current Thread [Next in Thread>