- From: Thomas G. Habing <thabing@uiuc.edu>
- Date: Thu, 20 Jun 2002 09:07:14 -0500
- To: www-xml-schema-comments@w3.org
Hi, In trying to derive a datatype for the W3CDTF (http://www.w3.org/TR/NOTE-datetime), I came up with: <xs:simpleType name="W3CDTF> <xs:union memberTypes="xs:gYear xs:gYearMonth xs:date xs:dateTime"/> </xs:simpleType> This will nearly do it except for the YYYY-MM-DDThh:mmTZD case (dateTime with no seconds). How about a xs:dateTimeNoSeconds datatype? Or better yet a xs:W3CDTF datatype? Another observation: I don't have a specific need for these, but why aren't there gHour, gMinute, gSecond, gHourMinute, or gMinuteSecond datatypes, similar to the gYear, gMonth, etc. datatypes? They could be used for events that recur at a specific time each day, for example. Thanks, -- Thomas Habing Research Programmer, Digital Library Projects University of Illinois at Urbana-Champaign 155 Grainger Engineering Library Information Center, MC-274 thabing@uiuc.edu, (217) 244-4425 http://dli.grainger.uiuc.edu
Received on Thursday, 20 June 2002 10:07:17 UTC