<?xml version="1.0" encoding="utf-8"?>
<!--
     WS-Calendar Minimal PIM-Conformant Schema Version 1.0 
     Committee Specification Draft 01 / Public Review Draft 01
     18 December 2015
     Copyright (c) OASIS Open 2015. All Rights Reserved.
     Source: : http://docs.oasis-open.org/ws-calendar/ws-calendar-min/v1.0/csprd01/schema/
     Latest version of the specification: http://docs.oasis-open.org/ws-calendar/ws-calendar-min/v1.0/ws-calendar-min-v1.0.html

     -->

<!--WS-Calendar-MIN-v1.0 WD06, a minimal PIM-conformant schema expressing the relationships described in the WS-Calendar PIM UML.-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:min="http://docs.oasis-open.org/ws-calendar/ns/min-xcal/2015/12" targetNamespace="http://docs.oasis-open.org/ws-calendar/ns/min-xcal/2015/12">
	<!-- 1 Outer Wrappers -->
	<!-- 2. Intervals -->
	<!-- 2.1 Interval -->
	<xs:element name="interval" type="min:IntervalType"/>
	<xs:complexType name="IntervalType">
		<xs:annotation>
			<xs:documentation>dtEnd is in the PIM to permit PSMs to use (e.g.) dtStart and dtEnd. See conformance and rules.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="min:instanceUid" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>UID of this object instance.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element ref="min:dtStart" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:duration" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:dtEnd" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:timeZone" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:tolerance" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:temporalLink" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="min:payload" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="min:comment" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
	<!-- x.x Gluon -->
	<xs:element name="gluon" type="min:GluonType"/>
	<xs:complexType name="GluonType">
		<xs:sequence>
			<xs:element ref="min:instanceUid" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>UID of this object instance. The entire context may need to be expressed for a truly universal ID.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element ref="min:requestedStart" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:duration" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:dtEnd" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:timeZone" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:tolerance" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:relationship" minOccurs="1" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>A Gluon must have a link to at least one CHILD</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element ref="min:payload" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:vAvailability" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>vAvailability in a Gluon is aimed "outward". That is, it advertises when a service can be Requested.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element ref="min:comment" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
	<!-- 3 Availability and Components -->
	<xs:element name="vAvailability" type="min:VAvailabilityType"/>
	<xs:complexType name="VAvailabilityType">
		<xs:annotation>
			<xs:documentation>Advertises when a seriSee [Vavailability]  C. Daboo, M. Douglass, Calendar Availability, http://tools.ietf.org/search/draft-daboo-calendar-availability-05, IETF Internet Draft Version 05, January 30, 2014</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="min:busyType" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="min:timeRange" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>timeRange is the time interval that is busy and described by this Vavailability object. Per the Internet Draft, this can be specified with or without a start. Duration may be included only if dtStart is present. Timezone is irrelevant if dtStart is not defined and SHOULD NOT be present.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element ref="min:granularity" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>The uniform size or granularity of the description for availabile times associated with this Vavailability.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element ref="min:availability" minOccurs="1" maxOccurs="unbounded"/>
			<xs:element ref="min:comment" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
	<!-- x.x Availability -->
	<xs:element name="availability" type="min:AvailabilityType"/>
	<xs:complexType name="AvailabilityType">
		<xs:annotation>
			<xs:documentation>A pattern of recurring intervals</xs:documentation>
			<xs:appinfo>See [Vavailability]  C. Daboo, M. Douglass, Calendar Availability, http://tools.ietf.org/search/draft-daboo-calendar-availability-05, IETF Internet Draft Version 05, January 30, 2014 rrules (Recurrence Rules) - see RFC 5545     3.8.5.3 RFC 6321     3.8.5.3 By implication all time periods in the Vavailability are busy; this specifies which are free.</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="min:availabilityInterval" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="min:recurrence" minOccurs="1" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="timeRange" type="min:TimeRangeType"/>
	<xs:complexType name="TimeRangeType">
		<xs:annotation>
			<xs:documentation>Used in: Availability::Vavailability for the time interval addressed, which may have dtStart defined (optional), and duration (optional, present only if dtStart is present). This allows expression for "all time", "all time from this start DateTime", and "a specified interval". See [Vavailability]  C. Daboo, M. Douglass, Calendar Availability, http://tools.ietf.org/search/draft-daboo-calendar-availability-05, IETF Internet Draft Version 05, January 30, 
</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="min:dateTime" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:duration" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>Optional. May be present ONLY if dtStart is present.</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element ref="min:timeZone" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>The absense of tZ does not imply UTC. UTC must be explicitly stated.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- n.n Avaiability Interval -->
	<xs:element name="availabilityInterval" type="min:AvailabilityIntervalType"/>
	<xs:complexType name="AvailabilityIntervalType">
		<xs:annotation>
			<xs:documentation>This class is fully bound, and therefore includes explicit times for both dtStart and duration.</xs:documentation>
			<xs:appinfo>See RFC 5545 and Internet Draft 5 for Vavailability. Used in: Availability::Vavailability for the time interval addressed Availability::AvailabilityType to</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="min:dateTime" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="min:duration" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="min:timeZone" minOccurs="0" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>The absense of tZ does not imply UTC. UTC must be explicitly stated.</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:element name="busyType" type="min:BusyTypeType"/>
	<xs:simpleType name="BusyTypeType">
		<xs:annotation>
			<xs:documentation>To express Busy, BusyTentative, and Free.

Reference:
RFC 5545     3.2.9
RFC 6321     3.2.9</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="busy"/>
			<xs:enumeration value="busyUnavailable"/>
			<xs:enumeration value="busyTentative"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- 4 stuff -->
	<!-- Date-Time -->
	<!-- RFC 5545 3.8.5.2 Recurrence Date/Times -->
	<!-- x.x Tolerance -->
	<xs:element name="tolerance" type="min:ToleranceType"/>
	<xs:complexType name="ToleranceType">
		<xs:annotation>
			<xs:documentation>A tolerance value is a set of durations which indicate the allowed tolerance for the indicated value, e.g. startafter=PT5M indicates that 5 minutes late is acceptable, and startbefore=PT10M indicates that 10 minutes prior is acceptable. There may be many tolerance attributes associated with a given DurationType object. Care should be taken in implementations to avoid confusing combinations, as the semantics may be complex.If no Tolerance values are associated, applications SHOULD use cardinality 0 for IntervalType::tolerance.</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="min:startBefore" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:startAfter" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:endBefore" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:endAfter" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:durationLong" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:durationShort" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:precision" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
	<!-- 5.0 Recurrence -->
	<!-- 5.1 Recurrence Identifier Range -->
	<xs:simpleType name="RangeValueType">
		<xs:restriction base="xs:token">
			<xs:enumeration value="THISANDFUTURE"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- Properties that take a recurrence value -->
	<xs:element name="requestedStart" type="min:RecurrenceType">
		<xs:annotation>
			<xs:documentation>requestedStart is a Recurrence that computes one or more stDates.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="recurrence" type="min:RecurrenceType"/>
	<xs:complexType name="RecurrenceType">
		<xs:annotation>
			<xs:documentation>The Recurrence Type consists of a seed date or date-time, rules to compute compute off-sets of that seed date, an optional end or final boundary to the series, optional inclusions for specifc datesand optional exclusions, i.e., dates to be skipped. </xs:documentation>
			<xs:appinfo>See RFC 5545 section 3.3.10 for a discussion.</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="min:dtStart" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="min:recurrenceRule" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="min:dtEnd" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:rDate" minOccurs="0" maxOccurs="unbounded"/>
			<xs:element ref="min:exDate" minOccurs="0" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<!-- recurrence -->
	<xs:element name="recurrenceRule" type="min:RecurrenceRuleType"/>
	<xs:complexType name="RecurrenceRuleType">
		<xs:annotation>
			<xs:documentation>The Recurrence Rule Type is a name value pair consisting of Rule Part and Rule Values. </xs:documentation>
			<xs:appinfo>The legal values for each Rule Part are specifed in RFC5545. There is no rule specifying the order for serializing rules; in whaterver order they appear, they must be processed in the order specified for processing rule parts in RFC5545.See RFC 5545 section 3.3.10 for a discussion.</xs:appinfo>
		</xs:annotation>
		<xs:sequence>
			<xs:element ref="min:recurRulePart" minOccurs="1" maxOccurs="1"/>
			<xs:element ref="min:recurRuleValues" minOccurs="1" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<!--	Examples:
	FREQ=DAILY;BYDAY=MO,TU,WE,TH,FR;COUNT=15
	This rule describes an event that takes place on every weekday (BYDAY) for the next 15 weekdays (COUNT).
	•FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3;COUNT=2
	Last Sunday (negative value for BYDAY) in March for every year. That’s the day the summer time begins in the EU.
	•FREQ=YEARLY;BYDAY=2SU;BYMONTH=5;COUNT=3
	Mother’s day. This rule describes a yearly that takes place on the second Sunday (BYDAY) in May (BYMONTH).
	•FREQ=YEARLY;INTERVAL=4;BYMONTH=11;BYDAY=TU;BYMONTHDAY=2,3,4,5,6,7,8
	US election day. Every fourth year (INTERVAL) on the first Tuesday (BYDAY) after a Monday (BYMONTHDAY ensures that) in November (BYMONTH).
	•FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=1;UNTIL=20131231
	All first weekdays (BYDAY in combination with BYSETPOS) of the month until the end of 2013 (UNTIL). 	
	FREQ=DAILY;BYDAY=MO,TU,WE,TH,FR;COUNT=15
	This rule describes an event that takes place on every weekday (BYDAY) for the next 15 weekdays (COUNT).
	•FREQ=YEARLY;BYDAY=-1SU;BYMONTH=3;COUNT=2
	Last Sunday (negative value for BYDAY) in March for every year. That’s the day the summer time begins in the EU.
	•FREQ=YEARLY;BYDAY=2SU;BYMONTH=5;COUNT=3
	Mother’s day. This rule describes a yearly that takes place on the second Sunday (BYDAY) in May (BYMONTH).
	•FREQ=YEARLY;INTERVAL=4;BYMONTH=11;BYDAY=TU;BYMONTHDAY=2,3,4,5,6,7,8
	US election day. Every fourth year (INTERVAL) on the first Tuesday (BYDAY) after a Monday (BYMONTHDAY ensures that) in November (BYMONTH).
	•FREQ=MONTHLY;BYDAY=MO,TU,WE,TH,FR;BYSETPOS=1;UNTIL=20131231
	All first weekdays (BYDAY in combination with BYSETPOS) of the month until the end of 2013 (UNTIL). 
-->
	<xs:element name="recurRulePart" type="min:RecurRulePartType"/>
	<xs:simpleType name="RecurRulePartType">
		<xs:restriction base="xs:token">
			<xs:enumeration value="FREQ">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="UNTIL">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="COUNT">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="INTERVAL">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BYSECOND">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BYMINUTE">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BYHOUR">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BYDAY">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BYMONTHDAY">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BYYEARDAY">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BYWEEKNO">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BYMONTH">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="BYSETPOS">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="WKST">
				<xs:annotation>
					<xs:documentation/>
					<xs:appinfo/>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
	<xs:element name="recurRuleValues" type="min:RecurRuleValuesType"/>
	<xs:simpleType name="RecurRuleValuesType">
		<xs:annotation>
			<xs:documentation>Either a single value or set of values for the recurRulePart. The range of legal values varies with the value of the recurRulePart as defined in RFC 5545</xs:documentation>
			<xs:appinfo/>
		</xs:annotation>
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<!-- Recurrence Frequency -->
	<xs:element name="freq" type="min:FreqType"/>
	<xs:simpleType name="FreqType">
		<xs:restriction base="xs:token">
			<xs:enumeration value="SECONDLY"/>
			<xs:enumeration value="MINUTELY"/>
			<xs:enumeration value="HOURLY"/>
			<xs:enumeration value="DAILY"/>
			<xs:enumeration value="WEEKLY"/>
			<xs:enumeration value="MONTHLY"/>
			<xs:enumeration value="YEARLY"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:element name="wkst" type="min:WeekdayType">
		<xs:annotation>
			<xs:documentation>The WkSt or Weekstart is used to specif the day of the week that a week begins on. For example, a Monday through Sunday payroll week would have a WkSt of "MO". The default value is "MO"</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="weekday" type="min:WeekdayType"/>
	<xs:simpleType name="WeekdayType">
		<xs:restriction base="xs:token">
			<xs:enumeration value="SU"/>
			<xs:enumeration value="MO"/>
			<xs:enumeration value="TU"/>
			<xs:enumeration value="WE"/>
			<xs:enumeration value="TH"/>
			<xs:enumeration value="FR"/>
			<xs:enumeration value="SA"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- 6.0 Links and Relationships -->
	<!-- 6.1 Temporal Link -->
	<xs:element name="temporalLink" type="min:TemporalLinkType"/>
	<xs:complexType name="TemporalLinkType">
		<xs:sequence>
			<xs:element ref="min:link" minOccurs="1" maxOccurs="1">
				<xs:annotation>
					<xs:documentation>A link to another Interval within the Sequence</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element ref="min:temporalRelationship" minOccurs="0" maxOccurs="1"/>
			<xs:element ref="min:duration" minOccurs="0" maxOccurs="1"/>
		</xs:sequence>
	</xs:complexType>
	<!-- 6.2 Relations -->
	<xs:element name="relationship" type="min:RelationshipType"/>
	<xs:simpleType name="RelationshipType">
		<xs:annotation>
			<xs:documentation>Parent-Child Link. The Relation in in the Parent and indicates the Instance UID of the Child</xs:documentation>
		</xs:annotation>
		<xs:restriction base="min:LinkType"/>
	</xs:simpleType>
	<!-- 6.3 Enumerations for Temporal Links -->
	<xs:element name="temporalRelationship" type="min:TemporalRelationshipType"/>
	<xs:simpleType name="TemporalRelationshipType">
		<xs:restriction base="xs:string">
			<xs:enumeration value="finishToStart"/>
			<xs:enumeration value="finishToFinish"/>
			<xs:enumeration value="startToFinish"/>
			<xs:enumeration value="startToStart"/>
		</xs:restriction>
	</xs:simpleType>
	<!-- 6.4 base type for Links and Relations -->
	<xs:element name="link" type="min:LinkType" abstract="true"/>
	<xs:simpleType name="LinkType">
		<xs:annotation>
			<xs:documentation>From iCalendar-link-extension::LinkPropType URI || String || UID.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="min:InstanceUidType"/>
	</xs:simpleType>
	<!-- 7.0 Durations -->
	<xs:element name="startBefore" type="min:DurationType">
		<xs:annotation>
			<xs:documentation/>
		</xs:annotation>
	</xs:element>
	<xs:element name="startAfter" type="min:DurationType">
		<xs:annotation>
			<xs:documentation/>
		</xs:annotation>
	</xs:element>
	<xs:element name="endBefore" type="min:DurationType">
		<xs:annotation>
			<xs:documentation/>
		</xs:annotation>
	</xs:element>
	<xs:element name="endAfter" type="min:DurationType">
		<xs:annotation>
			<xs:documentation/>
		</xs:annotation>
	</xs:element>
	<xs:element name="durationLong" type="min:DurationType">
		<xs:annotation>
			<xs:documentation/>
		</xs:annotation>
	</xs:element>
	<xs:element name="durationShort" type="min:DurationType">
		<xs:annotation>
			<xs:documentation/>
		</xs:annotation>
	</xs:element>
	<xs:element name="precision" type="min:DurationType">
		<xs:annotation>
			<xs:documentation/>
		</xs:annotation>
	</xs:element>
	<xs:element name="granularity" type="min:DurationType">
		<xs:annotation>
			<xs:documentation/>
			<xs:documentation>The uniform size or granularity of the a set of [intervals].</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="duration" type="min:DurationType">
		<xs:annotation>
			<xs:documentation/>
		</xs:annotation>
	</xs:element>
	<xs:simpleType name="DurationType">
		<xs:annotation>
			<xs:documentation>An ISO 8601  Conformed String Using Basic Format or Extended Format (8601 4.4.3) with the optional sign as required in RFC 5545 and RFC 6321 Section 3.3.6. When used for Tolerance, the sign MUST be absent. DurationType includes all 8601 conformed string values (of which xCal and XSD contain restricted but differing sets).</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<!-- 8.0 Dates and Times -->
	<xs:element name="rDate" type="min:DateTimeDateType">
		<xs:annotation>
			<xs:documentation>Recurrence Date. As well as generating recurrences by rule, one can name a set of recurrences. A Recurrence object may contain both RRules and RDates</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="exDate" type="min:DateTimeDateType">
		<xs:annotation>
			<xs:documentation>Exception or Excluded date in a series</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="dtEnd" type="min:DateTimeDateType"/>
	<xs:element name="dtStart" type="min:DateTimeDateType"/>
	<!-- DateTimeDate can be a Date OR a Time OR a DateTime -->
	<xs:complexType name="DateTimeDateType">
		<xs:annotation>
			<xs:documentation>A Conformed String Using which expressing a DateTime OR a Date OR a Time</xs:documentation>
		</xs:annotation>
		<xs:choice>
			<xs:element ref="min:date" maxOccurs="1"/>
			<xs:element ref="min:time" maxOccurs="1"/>
			<xs:element ref="min:dateTime" maxOccurs="1"/>
		</xs:choice>
	</xs:complexType>
	<!-- 9.1 Simple Date Types -->
	<xs:element name="date" type="min:DateType"/>
	<xs:simpleType name="DateType">
		<xs:restriction base="xs:date"/>
	</xs:simpleType>
	<xs:element name="time" type="min:TimeType"/>
	<xs:simpleType name="TimeType">
		<xs:restriction base="xs:time"/>
	</xs:simpleType>
	<xs:element name="dateTime" type="min:DateTimeType"/>
	<xs:simpleType name="DateTimeType">
		<xs:restriction base="xs:dateTime"/>
	</xs:simpleType>
	<!-- 9.0 Simple Types -->
	<!-- 9.1 Payload -->
	<xs:element name="payload" type="min:PayloadType" abstract="true">
		<xs:annotation>
			<xs:documentation>Abstract class that can be extended</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="PayloadType" abstract="true">
		<xs:annotation>
			<xs:documentation>The class is abstract; specifications that incorporate to this Schema may defined Payloads by extending this class.</xs:documentation>
		</xs:annotation>
	</xs:complexType>
	<!-- 9.2 Comment -->
	<xs:element name="comment" type="min:CommentType">
		<xs:annotation>
			<xs:documentation>Freeform comment annotating this artifact.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:simpleType name="CommentType">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<!-- Instance / UID -->
	<xs:element name="timeZone" type="min:InstanceUidType">
		<xs:annotation>
			<xs:documentation>A set of constrained strings that identify local time rules.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="recurrence-id" type="min:InstanceUidType"/>
	<xs:element name="instanceUid" type="min:InstanceUidType">
		<xs:annotation>
			<xs:documentation>UID of this object instance. The entire context may need to be expressed for a truly universal ID.</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:simpleType name="InstanceUidType">
		<xs:annotation>
			<xs:documentation>UID of this object instance. The entire context may need to be expressed for a truly universal ID.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
</xs:schema>
