xsl-list
[Top] [All Lists]

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

2015-11-13 09:38:22
Hi Martin,

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

Rick

-----Original Message-----
From: Martin Honnen martin(_dot_)honnen(_at_)gmx(_dot_)de
[mailto:xsl-list-service(_at_)lists(_dot_)mulberrytech(_dot_)com] 

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.
--~----------------------------------------------------------------
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>