by Eric van der Vlist is published by O'Reilly & Associates (ISBN: 0596004214)
<xsd:simpleType name="gMonth" id="gMonth"> <xsd:restriction base="xsd:anySimpleType"> <xsd:whiteSpace value="collapse" fixed="true"/> </xsd:restriction> </xsd:simpleType> |
enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern
The value space of xsd:gMonth is the period of one calendar month recurring each calendar year (such as the month of April). Its lexical space should follow the ISO 8601 syntax for such periods (i.e., -- MM) with an optional time zone.
In the example, I follow the correct ISO 8601 format.
The period (one year) and the duration (one month) are fixed, and no calendars other than Gregorian are supported.
Because of the typo in the W3C XML Schema Specification, you must choose between a bogus format, which works on the current version of the tools, or a correct format, which conforms to ISO 8601.
This text is released under the Free Software Foundation GFDL.