Martin and Ken,
So obvious, but I just did not see it.
Thanks
Mark
--------------------------------------------------
From: "Martin Honnen" <Martin(_dot_)Honnen(_at_)gmx(_dot_)de>
Sent: Tuesday, October 27, 2009 11:08 AM
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: Re: [xsl] XSL-FO group by problem
Mark Wilson wrote:
<xsl:for-each-group select="Item" group-by="concat(Prefix,
CatalogNumber, Range)">
<fo:block xsl:use-attribute-sets="base">
<xsl:for-each select="current-group()">
<!-- What do I put here so that I only get one copy of the Catalog
Number?
(This code seems to go into an endless loop.)
-->
<xsl:apply-templates select="CatalogNumber"
mode="do"/>
I think you want to move the above xsl:apply-templates outside of the
xsl:for-each to ensure it is only done once for each group but not for
each Item in each group.
<xsl:apply-templates select="Title" mode="do"/>
</xsl:for-each>
</fo:block>
</xsl:for-each-group>
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--