W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2000

Format for xsd:date contents?

From: Liz Castro <lcastro@cookwood.com>
Date: Mon, 6 Nov 2000 12:14:12 -0500
Message-Id: <v03102807b62c96c87119@[192.168.1.101]>
To: xmlschema-dev@w3.org
As far as I can tell from Datatypes 3.3.27, the format of an element of
type xsd:date should be CCCC-MM-DD. But when I validate:

<last_modified>May 16, 1999</last_modified>

or even

<last_modified>fried potatoes</last_modified>

against

<xsd:element name="last_modified" type="xsd:date"/>

XSV gives me no error. Is that a bug, or doesn't it care what the date
looks like?

Thanks,
Liz

_______________
Liz Castro
Cookwood Press
mailto:lcastro@cookwood.com
http://www.cookwood.com
Received on Monday, 6 November 2000 12:12:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:18 GMT