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

Return the 10 newest news articles

Subject: Return the 10 newest news articles
From: "Exide Arabellan" <exide@xxxxxxxxxxx>
Date: Sat, 24 Aug 2002 15:34:49 +0000
newest news
Currently i have an XML file that holds all the news input'd from certain users. Its then displayed on the 1st page viewers see. Currently there are only 13 articles to be listed, but as it grows i dont want the page load times to skyrocket. How would i convert the following XSL, to only show the 10 most recent news articles?

XML hierarchy looks like this:

- news
 - article
   - date
   - author
   - title
   - description

Sample XSL:

<xsl:for-each select="article">
Title: <xsl:value-of select="title"/><br/>
Author: <xsl:value-of select="author"/><br/>
Description <xsl:value-of select="description"/><p/>
</xsl:for-each>

"I only do what my rice crispies tell me to"
Exide Arabellan


_________________________________________________________________
Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com



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.