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

RE: Filter by date in XSL not in XSLT

Subject: RE: Filter by date in XSL not in XSLT
From: cknell@xxxxxxxxxx
Date: Mon, 28 Apr 2003 15:16:12 -0500
today s date in xsl
You will have to pass the current time as a parameter to the transformation. The command-line format for each XSLT processor is unique and since you didn't tell us which you are using, I can't give you an example, but you will have to add <xsl:param name="current-time" /> to your stylesheet.
-- 
Charles Knell
cknell@xxxxxxxxxx - email



-----Original Message-----
From:     "Amargos Carreras, Albert" <aamargos@xxxxxxxxxxx>
Sent:     Mon, 28 Apr 2003 19:37:41 +0200
To:       <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:   Filter by date in XSL not in XSLT

HI all,

I have to filter a xml file from a date greater than today's date, and I
don't  really know how can I take now's date.
My code makes sth like that:

<xsl:for-each
select="a:multistatus/a:response[a:propstat/a:prop/d:dtstart $ge$
'2003-04-28'][a:propstat/a:prop/d:dtstart $le$ '2003-05-05']"
order-by="a:propstat/a:prop/d:dtstart">

Currently I am comparing dates like strings, but I don't know how can I
can take now's date using XSL better than XSLT (my ie5.x have to view it
as well)

Regards,
Alberto

 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.