xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Splitting data into smaller groups for HTML output.


Subject: RE: [xsl] Splitting data into smaller groups for HTML output.
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 31 Oct 2005 20:15:22 -0000

Sorry: I left that expression blank because I hadn't kept the message where
you gave your source document structure. It's just the collection of all the
items you want to put in the div elements. The same expression as you would
put in <xsl:for-each select="..."/> if you were displaying them without
grouping.

Michael Kay
http://www.saxonica.com/


> -----Original Message-----
> From: Mike Rumble [mailto:mike.rumble@xxxxxxxxx] 
> Sent: 31 October 2005 19:56
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] Splitting data into smaller groups for HTML output.
> 
> 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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor