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

Re: Indexing in XSLT

Subject: Re: Indexing in XSLT
From: Jeff Kenton <jkenton@xxxxxxxxxxxxx>
Date: Sun, 11 Aug 2002 16:32:49 -0400 (EDT)
Re:  Indexing in XSLT
On Sun, 11 Aug 2002, Maulik Modi wrote:

..I need some help to solve this problem. Any help is appreciated.
..
..I have an instance document that gives me a list of available dates to
..choose from. I get passed another date which I have to compare against this
..list and return the matched date.
..
..If no match is found in the list, and the date passed is lower, I need to
..return the next higher date from the list. For example, if the date passed

    . . .
..
..The last requirement is if no match is found, and the date passed is higher,
..I need to pass a null. For example, the date passed is Sep 30 and the last
..date in the list is Aug 15, I need to pass back a null (or empty string).
..

Try adding your required date to the rest of the list and sort them all.  
Then test where in the sort your date ended up.


-- 

Jeff Kenton
DataPower Technology, Inc.
 *** Wire Speed XSLT ***

http://www.datapower.com/products.shtml



 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.