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

RE: Return the 10 newest news articles

Subject: RE: Return the 10 newest news articles
From: "Robert Koberg" <rob@xxxxxxxxxx>
Date: Sat, 24 Aug 2002 09:08:44 -0700
newest news
Hi,

The way you are doing it does not seem to be a scalable solution.

Why don't you keep you articles in separate files named by date, for example:
[news directory]
20020824_time.xml
20020823_time.xml
etc.

Then you could have a simple preprocess that either creates a list of the 10
latest articles or aggregates them into an instance of your news.xml.

You could still do it the way you are doing it but you have not given us enough
info about you XML.

best,
-Rob

> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Exide
> Arabellan
> Sent: Saturday, August 24, 2002 8:35 AM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  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
>



 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.