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

RE: minor grouping issue

Subject: RE: minor grouping issue
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 6 May 2005 23:03:27 +0100
RE:  minor grouping issue
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.