Hi,
I want to create a simpleType that will constrain an element to be a date of
the form dd/mm/yyyy.
I have this at the moment,
<xs:simpleType name="newDate">
<xs:restriction base="xs:string">
<xs:pattern
value="((0[1-9]|1\d|2[0-9])/([0][1-9]|1[0-2])|30/(0[13-9]|1[0-2])|31/(0[13578]|1[02]))/\d\d\d\d" />
</xs:restriction>
</xs:simpleType>
but that doesn't work for leap years. Is it possible to use the date base
type. Something like:
<xs:simpleType name="newDate">
<xs:restriction base="xs:date">
??? what goes here ???
</xs:restriction>
</xs:simpleType>
Thanks!