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

Re: things about grouping

Subject: Re: things about grouping
From: Geert Bormans <geert@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 24 Nov 2012 10:37:33 +0100
Re:  things about grouping
At 10:14 24/11/2012, you wrote:
On 24 November 2012 05:54, Ihe Onwuka <ihe.onwuka@xxxxxxxxx> wrote:
> 1. <xsl:apply-templates select="current-group() except blah"/>
>
> still applies templates to blah

It needs to be " except self::blah" otherwise it will look on the child axis.

In my understanding the first item in a group is selected as the context of the for-each-group
current-group() is the sequence of all nodes in the group
so I am not sure this should work in all cases.
Correct me if I am wrong please, Andrew


edit: I did some tests using Saxon 9.4PE
and it seems there we need indeed
<xsl:apply-templates select="current-group() except current-group()/self::blah"/>


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.