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

I need to sort and then display only the first 12 entr

Subject: I need to sort and then display only the first 12 entries of a node set
From: "Bill Chmura" <Bill@xxxxxxxxxxxxx>
Date: Tue, 11 Feb 2003 17:33:15 -0500
 I need to sort and then display only the first 12 entr
Hello and please help me!

I have a list that I need to sort and then display only the first 12,
then in another one I need to sort and then display all the ones over
12...

It is for a generating a page of recent entries, then a page of past
entries...


I tried this...
------------------------------------------
	<xsl:apply-templates
select="/Shsmith/Newsletters/Newsletter[position() &lt; 12]">
		<xsl:sort select="@dateposted" data-type="text"
order="descending"/> 
	</xsl:apply-templates>
	
	<xsl:apply-templates
select="/Shsmith/Newsletters/Newsletter[position() = 12]"
mode="archivelink">
		<xsl:sort select="@dateposted" data-type="text"
order="descending"/> 
	</xsl:apply-templates>
-----------------------------------------

Which worked fine until I added a new one.  The position takes effect
before the sort which is the reverse of what I need...

So how can I sort it by the dateposted then only process the first 12 of
them...

Any help would be appreciated, be it a solution or thoery for a possible
solution...

Thanks

Bill


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.