Subject: Re: [xsl] Grouping, Counting, and Sorting From: "Thomas F. O'Connell" <tfo@xxxxxxxxxxxxxx> Date: Thu, 03 Jun 2004 10:57:03 -0500 |
Any suggestions on how to do this? I'm wondering if there's a better approach to my general problem, too... -tfo > > -----Original Message----- > > From: Thomas F. O'Connell [mailto:tfo@xxxxxxxxxxxxxx] > > > > Hi, > > > Here's my current approach: > > > > <table> > > <th>Header</th> > > <xsl:apply-templates select="node[position() <= 100]"> > > <xsl:sort select="valid" /> > > </xsl:apply-templates> > > </table> > > > <snip /> > > ... but I was under the impression that the sort would apply to the > > nodes before their positions were considered. > > The sorting works like this: > > - you select the first 100 nodes > - then sort those on their (possibly absent) valid node > > If you want them all sorted first, you'll have to find a way to achieve the > sorting before the grouping... > > Greetz, > > Andreas
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] parameters - element vs a, stephen . peterson | Thread | Parsing a string, xptm |
Re: [xsl] Performance Question: Exp, M. David Peterson | Date | RE: [xsl] encoding shift_jis into a, Matthew Simoneau |
Month |