This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Selection based on date comparison


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@nag.co.uk]
Sent: Friday, November 30, 2001 3:41 PM
To: xsl-list@lists.mulberrytech.com
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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]