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

Grouping Nodes ?

Subject: Grouping Nodes ?
From: "Ciaran Byrne" <ciaran.byrne@xxxxxxx>
Date: Mon, 11 Jun 2001 16:25:43 +0100
byrne refresh
Hi all,
	I sent this e-mail some time ago and I apologise
for sending it again. Unfortunately I haven't made much
progress...

I'm attempting to transform the following

<go/><postfield id="A"/><refresh/><postfield id="B"/>

into....

<go><postfield id="A"/></go><refresh><postfield id="B"/></refresh>

i.e. Wrap the 'postfield' element in a 'go' until a 
sibling is encountered which isn't a 'postfield'.
In this case it's 'refresh'. The same rules apply for 'refresh'.

At the moment I'm attempting to recurse through each individual
following-sibling of the 'go' or 'refresh', checking if it's a 'postfield'.
If it's a 'postfield' then I copy it into the 'go' otherwise I move on.
I won't include my code since it's useless ;) but any help is appreicated.

Cheers,
Ciaran.


 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.