Re: [xsl] XSL-FO group by problem

Subject: Re: [xsl] XSL-FO group by problem
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Tue, 27 Oct 2009 19:08:54 +0100
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"/>



	Martin Honnen

Current Thread