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

Re: preceding-sibling in a group

Subject: Re: preceding-sibling in a group
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 May 2021 16:55:45 -0000
Re:  preceding-sibling in a group
On 19.05.2021 18:45, rick@xxxxxxxxxxxxxx wrote:

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.

current-group() is simply a sequence of items you grouped together, they can be from different trees, they can be atomic items.

XPath navigation along an axes is not related to grouping.

If you want to operate item-wise on the sequence like current-group()
use xsl:iterate or xsl:for-each or perhaps a higher-order function.

Perhaps show us an example of the input data, the grouping code you have
plus the code to process current-group(), then explain which node(s) you
are looking for.

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.