XML technologies / XML Schema / Data type reference / xs:gMonthDay

(Excerpt from “XML Schema” by Eric van der Vlist)

Recurring period: annual day

Derived from: xs:anySimpleType

Primitive type: xs:gMonthDay

Known subtypes: none

Facets: xs:enumeration, xs:maxExclusive, xs:maxInclusive, xs:minExclusive, xs:minInclusive, xs:pattern, xs:whiteSpace

Definition

<xs:simpleType name="gMonthDay" id="gMonthDay">
    <xs:restriction base="xs:anySimpleType">
        <xs:whiteSpace value="collapse" fixed="true"/>
    </xs:restriction>
</xs:simpleType>

Description

The value space of xs:gMonthDay consists of one-calendar-day periods recurring every calendar year, such as June 10. The lexical space follows ISO 8601 notation for these periods, --MM-DD, with an optional time zone.

Days are reduced to fit month length if necessary, so --02-29 would occur on February 28 in non-leap years.

Restrictions

The recurrence period, one year, and duration, one day, are fixed. No calendars other than Gregorian are supported.

Example

Valid values include "--05-01", "--11-01Z", "--11-01+02:00", "--11-01-04:00", "--11-15" or "--02-29".

The following values would be invalid: "-01-30-" (the format must be "--MM-DD" ), "--01-35" (day component out of range), "--1-5" (missing leading zeros) or "01-15" (missing "--" at the start).

   

 

 

 

back to top