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:57:04 -0500
what do you mean by "depending on where it is run"?  If you mean locale,
then I agree.  But I'm not sure if that would even, matter ... you'd be
constructing two Date object with the same locale.


-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: Friday, November 30, 2001 3:41 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Selection based on date comparison



] <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>


although presumably (?) that definition will return either true() or
false() for
a_is_greater_than_b(01/02/2001,02/01/2001)
depending on where it is run.

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 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