[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] Selection based on date comparison
Subject: RE: [xsl] Selection based on date comparison From: Jeff Beadle <Jbeadle@xxxxxxxx> Date: Fri, 30 Nov 2001 15:22:49 -0500 |
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: [xsl] 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: [xsl] 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Selection based on date c, Brinkman, Theodore | Thread | Re: [xsl] Selection based on date c, David Carlisle |
Re: [xsl] Divide and Conquer implem, Tom Myers | Date | Re: [xsl] Selection based on date c, Dennis Campillo |
Month |