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

Re: Grouping, Counting, and Sorting

Subject: Re: Grouping, Counting, and Sorting
From: "Thomas F. O'Connell" <tfo@xxxxxxxxxxxxxx>
Date: Thu, 03 Jun 2004 10:57:03 -0500
counting sort
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() &lt;= 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

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.