[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

copying problem

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

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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.