W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2001

RE: Date

From: Martin Duerst <duerst@w3.org>
Date: Thu, 05 Jul 2001 17:54:00 +0900
Message-Id: <>
To: "Ashok Malhotra" <ashokma@microsoft.com>, "Chelkowski, Tadeusz" <Tadeusz.Chelkowski@softwareag.com>, <xmlschema-dev@w3.org>
For the type library, I was more thinking about something like

<xsd:complexType name='Date'>
   <xsd:attribute name='value' type='xsd:date'>

This would allow all kinds of free-form date formats, including those
that need markup. It could be restricted to a simple type with a pattern
if desired. [I have no idea whether this syntax is correct or not, sorry.]

Regards,    Martin.

At 07:01 01/07/04 -0700, Ashok Malhotra wrote:
>OK.  Here is a Schema for the element suggested by Martin
><xsd:element name = 'myDate'>
>    <xsd:simpleType>
>       <xsd:restriction base='xsd:string'>
>           <xsd:pattern
>       </xsd:restriction>
>     </xsd:simpleType>
>     <xsd:attribute name= 'value' type='xsd:date'>
>All the best, Ashok
Received on Thursday, 5 July 2001 04:59:26 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:52 UTC