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

Re: Merging elements

Subject: Re: Merging elements
From: Andrew Welch <andrew.j.welch@xxxxxxxxx>
Date: Thu, 27 Oct 2011 10:18:54 +0100
Re:  Merging elements
> I've been looking at the problem for too long and have a horribly complex
set of grouping statements that applied in a multiple mode stylesheet. I'm
convinced that there's a simpler way to do this but I think that I can't see
the wood for the trees. Does anyone have an elegant way to do this?
>

Use 'sibling recursion', similar to the identity template but it
traverses the following-sibling axis... then add a specific template
for the span which does the grouping (by checking if the immediate
following sibling element is also a span)



--
Andrew Welch
http://andrewjwelch.com

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.