This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Return the 10 newest news articles
- From: "Exide Arabellan" <exide at hotmail dot com>
- To: XSL-List at lists dot mulberrytech dot com
- Date: Sat, 24 Aug 2002 15:34:49 +0000
- Subject: [xsl] Return the 10 newest news articles
- Reply-to: xsl-list at lists dot mulberrytech dot com
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