[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL-FO group by problem

Subject: Re: XSL-FO group by problem
From: "Mark Wilson" <mark@xxxxxxxxxxxx>
Date: Tue, 27 Oct 2009 12:07:42 -0700
Re:  XSL-FO group by problem
Martin and Ken,
So obvious, but I just did not see it.
From: "Martin Honnen" <Martin.Honnen@xxxxxx>
Sent: Tuesday, October 27, 2009 11:08 AM
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re:  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"/>



Martin Honnen

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.