[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] things about grouping

Subject: Re: [xsl] things about grouping
From: Geert Bormans <geert@xxxxxxxxxxxxxxxxxxx>
Date: Sat, 24 Nov 2012 10:37:33 +0100

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