xsl-list
[Top] [All Lists]

RE: minor grouping issue

2005-05-06 15:03:27
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(_at_)gmail(_dot_)com] 
Sent: 06 May 2005 22:08
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] minor grouping issue

I've got a book, where I suck 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

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>