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

Re: Splitting data into smaller groups for HTML output

Subject: Re: Splitting data into smaller groups for HTML output.
From: Mike Rumble <mike.rumble@xxxxxxxxx>
Date: Mon, 31 Oct 2005 19:55:59 +0000
michael rumble
Thanks Michael, this code looks good.

5/5/5/5/1 is indeed how I would like things to end up if there were 21 items.

Now, then... how would I incorporate this into my stylesheet and what
should I put in this piece of code:

<xsl:variable name="all-items" select="..."/>

Sorry for sounding a bit stupid on this one! It's all still pretty new
to me, but I'm egar to learn!

Cheers,
Mike.


On 10/31/05, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> Or to put it another way, the number of groups $n is
floor(((count(items)-1)
> div 5) + 1)
>
> This still isn't quite a complete spec: if there are 21 items, are your 5
> groups of size 5/4/4/4/4, or of size 5/5/5/5/1?

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.