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

RE: Another (positional?) grouping problem

Subject: RE: Another (positional?) grouping problem
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 20 Oct 2006 10:03:09 +0100
RE:  Another (positional?) grouping problem
> Actually, I have to exclude an unknown number of elements 
> before the first DATE, so I amended your suggestion to 
> <xsl:for-each-group
> select="* except /DOC/DATE[1]/preceding-sibling::*" 
> group-starting-with="DATE"> and it works fine (thanks to Saxon).

The other way to achieve that would be to leave out the "except xxx", in
which case the initial nodes would go in a group of their own, and you could
eliminate that group with a test such as

<xsl:if test="current-group()[1][self::DATE]">

Michael Kay
http://www.saxonica.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.