This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Return the 10 newest news articles


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]