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

Re: Limiting the number of RSS-items shown in result t

Subject: Re: Limiting the number of RSS-items shown in result tree using xslt
From: "Werner, Wolfgang" <mail@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 11 Oct 2004 12:35:15 +0200
limiting number of rss items
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


| Perhaps something like this: | <xsl:for-each select='/item[position() &lt; 11 and not(category='A')]'> | <xsl:sort select='date:format-date(pubDate,"ssmmHHDD")'/> | <xsl:if test='position() < 4> | <!-- include --> | </xsl:if> | </xsl:for-each> | | I also noticed that in your example, the rss feed is already sorted | descending by date, can you rely on that? If so, you could use | position() again to get the latest elements. i.e. just leave out xsl:sort in the template above.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Cygwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFBamHjqjaicDyx8o8RAs+PAJ4zyRFBtIXiC/pOFKKmu+AnudHc+wCeLgOL
mXX0wgCodoAaE9fvmbH5kzM=
=Y/2O
-----END PGP SIGNATURE-----

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.