|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Selection based on date comparison
here's the usage:
<msxsl:script language="JScript" implements-prefix="date"><![CDATA[
function a_is_greater_than_b(a,b){
return ((new Date(a)) > (new Date(b)));
}
]]></msxsl:script>
<xsl:variable name="filter" select="filtervalues/@timeframe" />
<xsl:... select="Ledger_Entry/[@Distribution_Flag != "" and
date:a_is_greater_than_b(@Trade_date,$filter)] />
-Jeff
-----Original Message-----
From: Jeff Beadle [mailto:Jbeadle@xxxxxxxx]
Sent: Friday, November 30, 2001 2:24 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE: Selection based on date comparison
why not use a parser extension, like msxsl for msxsl. You could construct
javascript date objects and compare them.
-----Original Message-----
From: Dennis Campillo [mailto:dcampillo@xxxxxxx]
Sent: Friday, November 30, 2001 2:15 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: Selection based on date comparison
>But the date format you choose is unsuited for compraision. Use
>something like 20010603.
>If you cant, you will have to use substring().
>
Unfortunately, the date format is beyond my control at the moment, I
understand I will have to use substring() in order to compare the dates.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








