DDI 3.1 XML Schema Documentation (2009-10-18)
© DDI Alliance 2009 - licensed under the terms of the GNU Lesser General Public License
complexType "DateType"
Namespace:
Content:
complex, 1 attribute, 7 elements
Defined:
globally in reusable.xsd, see XML source
Includes:
definitions of 1 attribute and 7 elements
Used:
XML Representation Summary
<...
    calendar
 = 
xs:string
    >
   
Content: 
(SimpleDate | (StartDate, HistoricalStartDate?, EndDate?, HistoricalEndDate?, Cycle?)), HistoricalDate?
</...>
Content Model Elements (7):
Known Direct Subtypes (2):
All Direct / Indirect Based Elements (9):
Known Usage Locations
Annotation
Provides the structure of a Date element, which allows a choice between single, simple dates (of BaseDateType) or date ranges. If the Date element contains a range, Cycle may be used to indicate occurrence of this range within a series of ranges as an integer identifying the cycle. ISO-formatted dates are required for all fields; a historically-formatted date may be provided in addition to the ISO-formatted date.
XML Source (w/o annotations (9); see within schema source)
<xs:complexType name="DateType">
<xs:sequence>
<xs:choice>
<xs:element ref="SimpleDate"/>
<xs:sequence>
<xs:element ref="StartDate"/>
<xs:element minOccurs="0" ref="HistoricalStartDate"/>
<xs:element minOccurs="0" ref="EndDate"/>
<xs:element minOccurs="0" ref="HistoricalEndDate"/>
<xs:element minOccurs="0" name="Cycle" type="xs:integer"/>
</xs:sequence>
</xs:choice>
<xs:element minOccurs="0" ref="HistoricalDate"/>
</xs:sequence>
<xs:attribute name="calendar" type="xs:string" use="optional"/>
</xs:complexType>
Attribute Detail (defined in this component only; 1/1)
calendar
Type:
xs:string, predefined
Use:
optional
Specifies the type of calendar used (e.g., Gregorian, Julian, Jewish).
XML Source (w/o annotations (1); see within schema source)
<xs:attribute name="calendar" type="xs:string" use="optional"/>
Content Element Detail (defined in this component only; 7/7)
Cycle
Type:
xs:integer, predefined, simple content
Indicates the sequence of a date range within several ranges.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="Cycle" type="xs:integer"/>

EndDate
Type:
BaseDateType, simple content
End of a date range. If range is continuing on, end date can be blank.
Simple Content
xs:dateTime | xs:date | xs:gYearMonth | xs:gYear | xs:duration
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="EndDate"/>

HistoricalDate
Type:
HistoricalDateType, simple content
A date expressed in a historical date format, according to a system specified in the historicalDateFormat attribute.
Simple Content
xs:string
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="HistoricalDate"/>

HistoricalEndDate
Type:
HistoricalDateType, simple content
End of a date range, expressed in a historical date format, according to a system specified in the historicalDateFormat attribute.
Simple Content
xs:string
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="HistoricalEndDate"/>

HistoricalStartDate
Type:
HistoricalDateType, simple content
Start of a date range, expressed in a historical date format, according to a system specified in the historicalDateFormat attribute.
Simple Content
xs:string
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" ref="HistoricalStartDate"/>

SimpleDate
Type:
BaseDateType, simple content
A single point in time.
Simple Content
xs:dateTime | xs:date | xs:gYearMonth | xs:gYear | xs:duration
XML Source (w/o annotations (1); see within schema source)
<xs:element ref="SimpleDate"/>

StartDate
Type:
BaseDateType, simple content
Start of a date range.
Simple Content
xs:dateTime | xs:date | xs:gYearMonth | xs:gYear | xs:duration
XML Source (w/o annotations (1); see within schema source)
<xs:element ref="StartDate"/>

XML schema documentation generated with DocFlex/XML SDK 1.7.2 using DocFlex/XML XSDDoc 2.1.0 template set