I am creating an xml schema, and I want to support a custom date format:
Thu Dec 11 14:17:20 2008
Currently I'm using the following pattern type:
<xs:simpleType name="Date_Type">
<xs:restriction base="xs:token">
<xs:pattern value="(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan|Feb|Mar|Apr|May|June|Jul|Aug|Sep|Oct|Nov|Dec) [0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2} [0-9]{4}"/>
</xs:restriction>
</xs:simpleType>
Is there a simpler (more elegant) way of doing this using XML-schema?