RELAX NG by Eric van der Vlist will be published by O'Reilly & Associates (ISBN: 0596004214)
You are welcome to use our annotation system to give your feedback.
xsd:gMonth — Recurring period of time: yearly month.
xsd:anySimpleType
xsd:gMonth
none
enumeration, maxExclusive, maxInclusive, minExclusive, minInclusive, pattern.
<xsd:simpleType name="gMonth" id="gMonth"> <xsd:restriction base="xsd:anySimpleType"> <xsd:whiteSpace value="collapse" fixed="true"/> </xsd:restriction> </xsd:simpleType> |
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 timezone.
Note | |
---|---|
There is a typo in the W3C XML Schema Recommendation where the format is defined as " -- MM -- -- . Even though an erratum should be published to bring the W3C XML Schema inline with ISO 8601, most of the current schema processors will expect the (bogus) format " -- MM -- --" . |
In the example, we follow the correct ISO 8601 format.
The period (one year) and the duration (one month) are fixed, and no calendars other than the Gregorian are supported.
Because of the typo in the W3C XML Schema Specification, users must choose between a bogus format, which works on the current version of the tools, or a correct format, which conforms to ISO 8601.
Valid values include "--05", "--11Z", "--11+02:00", "--11-04:00", or "--02".
The following values would be invalid: "-01-" (the format must be "--MM"), "--13" (the month is out of range), "--1" (both digits must be provided), or "01" (leading " -- " are missing).
You are welcome to use our annotation system to give your feedback.
[Annotations for this page]
All text is copyright Eric van der Vlist, Dyomedea. During development, I give permission for non-commercial copying for educational and review purposes. After publication, all text will be released under the Free Software Foundation GFDL.