Re: [xsl] Navigating <xsl:for-each-group> groups

Subject: Re: [xsl] Navigating <xsl:for-each-group> groups
From: "Rick Quatro rick@xxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 13 Nov 2015 15:38:17 -0000
Hi Martin,

That makes sense. Thank you very much for the help.


-----Original Message-----
From: Martin Honnen martin.honnen@xxxxxx

If you process the current-group() with e.g.
   <xsl:for-each select="current-group()">
     <xsl:variable name="pos" select="position()"/>
     <xsl:variable name="prec" select="current-group()[position() lt
     <xsl:variable name="foll" select="current-group()[position() gt
or use the same approach with <xsl:apply-templates
select="current-group()"/> then you can access the items in a group
preceding or following the current item in the group.

Current Thread