W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2002

Types date, time and dateTime.

From: Roberto Hideki <hideki@rededc.com.br>
Date: Tue, 03 Sep 2002 11:04:09 -0600
Message-Id: <5.1.0.14.1.20020903110400.02321010@localhost>
To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
Hi !

Im learning XML Schema and Ill like suggest a normalization of the types 
date, time and their derivations. I believe this facilit the manipulation 
the data from an application.
E.g.
<xs:element name="testDate" type="xs:date>
     <xs:complexType>
         <xs:sequence>
             <xs:element name="testYear" type="xs:year"/>
             <xs:element name="testMonth" type="xs:month"/>
             <xs:element name="testDay" type="xs:day"/>
         </xs:sequence>
     </xs:complexType>
</xs:element>

My doubt is what element the restriction must be made: In the complexType 
(date) or in the sympleType (year, month and day).

Regards for your attention,

Roberto Hideki Tatemoto
So Paulo Brazil
Received on Tuesday, 3 September 2002 13:05:14 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:01 GMT