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

Re: Is this a grouping task?

Subject: Re: Is this a grouping task?
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 22 Oct 2019 18:17:27 -0000
Re:  Is this a grouping task?
On 22.10.2019 20:07, Rick Quatro rick@xxxxxxxxxxxxxx wrote:


I am using XSLT 2 and think this may require a for-each-group solution. Any advice would be appreciated. Thank you very much.

Nest two xsl:for-each-group, the outer select="*" group-starting-with="revst", the inner select="current-group()" group-ending-with="revend". As with most group-starting-with/ending-with where there are nodes involved that don't fit the grouping pattern, inside of the for-each-group you need an additional check with xsl:choose/xsl:when test="self::revst" or test="self::revend".

To add the attribute, I would push the current-group() through a mode
adding it.

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.