Re: [xsl] Feedback on grouping solution

Subject: Re: [xsl] Feedback on grouping solution
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 26 Oct 2019 17:48:43 -0000
On 26.10.2019 19:45, Rick Quatro rick@xxxxxxxxxxxxxx wrote:

That's an oversight on my part. Any elements outside of step elements have
to be processed individually. Can I change the for-each-group to just group
adjacent <step> elements?

Yes, it looks there you just want

<xsl:for-each-group select="*" group-adjacent="boolean(self::step)">
                  <xsl:when test="current-grouping-key()">
                      use your template here
                      <xsl:apply-templates select="current-group()"/>

Current Thread