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

Re: positional grouping xslt2

Subject: Re: positional grouping xslt2
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 10 Mar 2004 10:37:35 GMT
for each group syntax
Mike said,


  Grouping the adjacent bullets can use

  <xsl:for-each-group select="node()" group-adjacent="boolean(self::bullet)">


(And I'd done more or less same in my version posted yesterday).

This is actually first time I'd experimented with group-adjacent=
I must say I'm fairly impressed with this. Many of the other grouping
forms can be done with xslt1 using muenchian grouping variants which
start to look normal after a few thousand posts to xsl-list but are
fairly arcane. Having a for-each-group syntax makes them more
convenient and a lot easier to learn, although not that much more
powerful if you have already paid the price of learning the xslt1 tricks
required.

However the "adjacent groups" is a pain to do in xslt 1, and I've needed
it several times, in production stylesheets here at work as well as in
answers posted here. Having this just sort itself automatically just by
throwing in one different attribute on the grouping element is a big
win.

David
[normal service, ranting against xpath2, will be resumed later:-]

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

 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.