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

RE: picking and choosing

Subject: RE: picking and choosing
From: Linus-Lin <LLin@xxxxxxxxxxxxxxx>
Date: Tue, 19 Sep 2000 14:57:40 -0400
picking and choosing
a possible solution would be this (there's plenty of solution depending on
your XML):

if your NEWSTORY(s) have been sorted based on priority...
get all stories upto but not including the 6th.

<xsl:templates match="NEWSTORIES">
  <xsl:if test="position() &lt; 6"> 
	<xsl:apply-templates select="NEWSTORY"/>
  </xsl:if> 
</xsl:templates> 


-----Original Message-----
From: Michael [mailto:mlilley@xxxxxxxxxxxxxx]
Sent: Tuesday, September 19, 2000 1:28 PM
To: xsl-list@xxxxxxxxxxxxxxxx
Subject: picking and choosing


Hi, I'm new to xsl and I'm sorry if this sounds dumb:

I need to know how to write an xsl file that can take only 5 items from an
xml file that 30 items in it...
I am taking a newsfeed in XML, but the feed itself has 30 stories, and I
only want to display the first 5 - Is that possible?

Thanks
Micahel


 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.