Subject: RE: minor grouping issue
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 6 May 2005 23:03:27 +0100
|
Perhaps I don't understand your structure, but I don't understand why you're
trying to group a list of chapters by chapter - surely you'll end up with
one chapter in each group? Why can't you just do <xsl:for-each
select="$chapters">?
I don't know why each group contains all the notes for the entire book, but
I suspect it's an error in the template that gets invoked by the
apply-templates call that you've shown us.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Bruce D'Arcus [mailto:bdarcus@xxxxxxxxx]
> Sent: 06 May 2005 22:08
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: minor grouping issue
>
> I've got a book, where I [expletive deleted] in the individual chaptes and hold them
> in a variable. I want to export the footnotes as a separate file,
> wherein the notes are grouped and numbered by chapter.
>
> If I use the below, however, I end up with a group for each chapter,
> but each group contains all the notes for the entire book.
>
> <xsl:for-each-group select="$chapters" group-by="db:chapter">
> <h3>Chapter <xsl:value-of select="current-group()/@label"/></h3>
> <xsl:apply-templates select="current-group()//db:footnote"
> mode="footnote-list"/>
> </xsl:for-each-group>
>
> What am I doing wrong?
>
> Bruce
|