Re: Different behaviour for the first item in a for
That seems to be it. I checked 28 of the 200+ pages and all was OK.
Then you don't need $group-position ... in what I see in your bit below it is totally redundant.
<xsl:variable name="group-position" select="position()"/> <fo:table-row> <xsl:if test="position()=1 and $group-position=1">
It was there to get the first of the current-group() in the first of the groups, so if you aren't walking through the groups then you don't need it. You are acting on only the first member of each group, thus I gather you are doing it for de-duping and not for classical grouping.
By the way, you have helped with this very same function three times now over the past year. For the record, here is the actual correct template.
You might want to review taking out $group-position because it isn't doing anything for you.
I'm glad things have worked out for you. And a Happy Hallowe'en to you and yours!
. . . . . . . Ken
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format