Re: [xsl] Is there a way to sometimes bypass a nested for-each group?
Subject: Re: [xsl] Is there a way to sometimes bypass a nested for-each group?|
From: "Mark Wilson" <mark@xxxxxxxxxxxx>
Date: Thu, 24 Jul 2008 06:25:23 -0700
Your solution appears to work perfectly on my example. To make sure I
understand why it works,
(1) is my belief correct that when you said "so instead of grouping on the
element (which may not be there), group on its string value (which will be)
" you were telling me to replace a non-existent sequence with an empty
(2) I implemented your suggestion as:
<xsl:for-each-group select="current-group()" group-by="string(SubHeading)">
Is that correct?
This solution would never have occurred to me. So much to learn!