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.

Rick

-----Original Message-----
From: Martin Honnen martin.honnen@xxxxxx
[mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx] 

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
$pos]"/>
     <xsl:variable name="foll" select="current-group()[position() gt
$pos]"/>
      ...
   </xsl:for-each>
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