Re: [xsl] preceding-sibling in a group

Subject: Re: [xsl] preceding-sibling in a group
From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 May 2021 17:22:47 -0000
It would be good to see the problem in context, but if you want to select
elements that are both (a) members of the current group, and (b) preceding
siblings of the current element, then you could use (preceding-sibling::*
intersect current-group()).

I suspect though that there is a better solution.

Michael Kay

> On 19 May 2021, at 17:45, rick@xxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
> If I am processing elements in the current-group (), is the
preceding-sibling axis restricted to the current group? I want to test the
value on a preceding-sibling element, but want to restrict it to the group I
am processing. Any pointers would be appreciated. I am using XSLT 3. Thank you
very much.
> Rick
> Rick Quatro
> Carmen Publishing Inc.
> 585-729-6746
> rick@xxxxxxxxxxxxxxx <mailto:rick@xxxxxxxxxxxxxxx>
> <>
> XSL-List info and archive <>
> EasyUnsubscribe <> (by
email <>)

Current Thread