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

RE: Date Comparison using ">=" and "<=" doesn't work -

Subject: RE: Date Comparison using ">=" and "<=" doesn't work - WHY!?!?
From: "Snow, Corey" <CSNOW@xxxxxxxxx>
Date: Mon, 11 Mar 2002 15:45:22 -0800
xsl date comparison
You have to use the escaped versions: &lt; and &gt; (well, technically, only
the "<" character must be escaped, but it's best to do both).

So the comparison should be date &gt;='2/10/02' and Date &lt;='2/15/2002'

Weird, I know. But it works. Taken from Mike Kay's book XSLT 2d Edition,
page 416.

Corey



> -----Original Message-----
> From: Gregory Pearson [mailto:GregP@xxxxxxxxx]
> Sent: Monday, March 11, 2002 3:29 PM
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  Date Comparison using ">=" and "<=" doesn't work -
> WHY!?!?
> 
> 
> Hi.
> 
> This works:
> 
>      
> Style.XMLDocument.selectNodes("//xsl:apply-templates/@select")
> (1).value = "record[Date = '2/12/02']";
> 
> This does NOT work:
> 
>      
> Style.XMLDocument.selectNodes("//xsl:apply-templates/@select")
> (1).value = "record[Date >= '2/10/02' and Date <= 
> '2/15/02']";					
> 
> IS IT NOT POSSIBLE TO USER ">=" AND "<=" FOR DATES?
> 
> Thanks!!
> 
> 
> 					
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

#########################################################
The information contained in this e-mail and subsequent attachments may be privileged, 
confidential and protected from disclosure.  This transmission is intended for the sole 
use of the individual and entity to whom it is addressed.  If you are not the intended 
recipient, any dissemination, distribution or copying is strictly prohibited.  If you 
think that you have received this message in error, please e-mail the sender at the above 
e-mail address.
#########################################################

 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.