[Top] [All Lists]

Re: [xsl] Feedback on grouping solution

2019-10-26 12:48:47
On 26.10.2019 19:45, Rick Quatro rick(_at_)rickquatro(_dot_)com 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()"/>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com

<Prev in Thread] Current Thread [Next in Thread>