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

Re: XPath string comparison of two strings representin

Subject: Re: XPath string comparison of two strings representing calendar dates ... any counterexamples?
From: "Syd Bauman s.bauman@xxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 16 Aug 2017 19:14:08 -0000
Re:  XPath string comparison of two strings representin
Yes, comparison as a string will work from 1000-01-01 to 9999-12-31,
or the strings could be converted to dates as others have mentioned.

But be sure this field is a DATE, not a DATE or DATE-TIME, as the
latter in RFC 5545 permits time zones in any of 3 formats. At least
one of those formats will not work with string comparison, and
comparison of different formats (or of a DATE with a DATE-TIME) will
probably also not work. In all of these converting to an xsd:dateTime
first is probably your best bet. (But for at least one DATE-TIME
format, that seems to me to be annoying, and perhaps quite
difficult.)

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.