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

RE: convert following-sibling to be childs

Subject: RE: convert following-sibling to be childs
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 30 Mar 2005 21:03:39 +0100
childs element
Do a search for "XSLT positional grouping". It's a tricky problem in XSLT
1.0 but there are well-known solutions.

Michael Kay
http://www.saxonica.com/ 

> -----Original Message-----
> From: 04083259@xxxxxxxxxxxxx [mailto:04083259@xxxxxxxxxxxxx] 
> Sent: 30 March 2005 19:50
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  convert following-sibling to be childs
> 
> hi
> in a   big xml database i need  to turn some following 
> sibling elements
> into childs of that element:
> 
> if we have the following database :
> 
> <top>
> <set1/><x/><y/><y/><x/><y/><set2/><x/><y/><x/><y/><x/><y/><y/><x/><y/>
> <set3/><x/><x/><y/><x/><y/>x/><y/><x/><y/><x/><y/>
> 
> </top>
> 
> i want all the following sibling  <x/>and <y/> of the element 
> <set1> until
> we reach the <set2/> to be childs of <set1/>
> the same with <x/> and <y/> following set2
> and the same with <x/> and <y/> following <set3/>

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.