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).
Copyright © 2003 O'Reilly Verlag GmbH & Co. KG
You may print the online version for your private use.
Otherwise, this chapter from “XML Schema” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
O’Reilly Verlag GmbH & Co. KG, Balthasarstraße 81, 50670 Köln, kommentar(at)oreilly.de