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

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

Recurring period: monthly day

Derived from: xs:anySimpleType

Primitive type: xs:gDay

Known subtypes: none

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

Definition

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

Description

The value space of xs:gDay consists of one-calendar-day periods recurring every calendar month, such as the tenth day. The lexical space follows ISO 8601 notation for these periods, ---DD, with an optional time zone.

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

Restrictions

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

Example

Valid values include "---01", "---01Z", "---01+02:00", "---01-04:00", "---15" oder "---31".

The following values would be invalid: "--30-" (the format must be "---DD"), "---35" (day out of range), "---5" (all digits required) or "15" (missing "---" at the start).

   

 

 

 

back to top