RE: Date

For the type library, I was more thinking about something like

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

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
>value="((2[0-9][0-9][0-9])|(1[0-9][0-9][0-9]))((0[0-9])|(1[0-2]))(([0-2]
>[1-9
>])|(3[0-1]))"/>
>       </xsd:restriction>
>     </xsd:simpleType>
>     <xsd:attribute name= 'value' type='xsd:date'>
></xsd:element>
>
>All the best, Ashok

Received on Thursday, 5 July 2001 04:59:26 UTC