xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor