| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
|---|
| 2 |
<!--OASIS WS-Calendar extensions to icalendar --> |
|---|
| 3 |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" |
|---|
| 4 |
xmlns:xcal="urn:ietf:params:xml:ns:icalendar-2.0" |
|---|
| 5 |
targetNamespace="urn:ietf:params:xml:ns:icalendar-2.0" |
|---|
| 6 |
elementFormDefault="qualified"> |
|---|
| 7 |
|
|---|
| 8 |
<xs:include schemaLocation="iCalendar-valtypes.xsd" /> |
|---|
| 9 |
|
|---|
| 10 |
<!-- ===================== Properties ================================= --> |
|---|
| 11 |
<xs:include schemaLocation="iCalendar-props.xsd" /> |
|---|
| 12 |
|
|---|
| 13 |
<!-- ===================== Components ================================= --> |
|---|
| 14 |
<xs:include schemaLocation="iCalendar.xsd" /> |
|---|
| 15 |
|
|---|
| 16 |
<!-- ===================================================================== |
|---|
| 17 |
3.2 Property parameter definitions |
|---|
| 18 |
===================================================================== --> |
|---|
| 19 |
|
|---|
| 20 |
<!-- Parameters that take a duration value --> |
|---|
| 21 |
<xs:complexType name="DurationParameterType" > |
|---|
| 22 |
<xs:complexContent mixed="false"> |
|---|
| 23 |
<xs:extension base="xcal:BaseParameterType"> |
|---|
| 24 |
<xs:sequence> |
|---|
| 25 |
<xs:element ref="xcal:duration"/> |
|---|
| 26 |
</xs:sequence> |
|---|
| 27 |
</xs:extension> |
|---|
| 28 |
</xs:complexContent> |
|---|
| 29 |
</xs:complexType> |
|---|
| 30 |
|
|---|
| 31 |
<!-- Gap is used in the LINK property --> |
|---|
| 32 |
<xs:element name="gap" type="xcal:DurationParameterType" |
|---|
| 33 |
substitutionGroup="xcal:baseParameter" /> |
|---|
| 34 |
|
|---|
| 35 |
<!-- The following are used with attach --> |
|---|
| 36 |
|
|---|
| 37 |
<xs:element name="startbeforetolerance" type="xcal:DurationParameterType" |
|---|
| 38 |
substitutionGroup="xcal:baseParameter" /> |
|---|
| 39 |
|
|---|
| 40 |
<xs:element name="startaftertolerance" type="xcal:DurationParameterType" |
|---|
| 41 |
substitutionGroup="xcal:baseParameter" /> |
|---|
| 42 |
|
|---|
| 43 |
<xs:element name="endtbeforetolerance" type="xcal:DurationParameterType" |
|---|
| 44 |
substitutionGroup="xcal:baseParameter" /> |
|---|
| 45 |
|
|---|
| 46 |
<xs:element name="endaftertolerance" type="xcal:DurationParameterType" |
|---|
| 47 |
substitutionGroup="xcal:baseParameter" /> |
|---|
| 48 |
|
|---|
| 49 |
<xs:element name="durationlongtolerance" type="xcal:DurationParameterType" |
|---|
| 50 |
substitutionGroup="xcal:baseParameter" /> |
|---|
| 51 |
|
|---|
| 52 |
<xs:element name="durationshorttolerance" type="xcal:DurationParameterType" |
|---|
| 53 |
substitutionGroup="xcal:baseParameter" /> |
|---|
| 54 |
|
|---|
| 55 |
<xs:element name="granularity" type="xcal:DurationParameterType" |
|---|
| 56 |
substitutionGroup="xcal:baseParameter" /> |
|---|
| 57 |
|
|---|
| 58 |
<!-- ===================================================================== |
|---|
| 59 |
3.4 Calendar Components |
|---|
| 60 |
===================================================================== --> |
|---|
| 61 |
|
|---|
| 62 |
<xs:complexType name="WsCalendarGluonType"> |
|---|
| 63 |
<xs:complexContent mixed="false"> |
|---|
| 64 |
<xs:extension base="xcal:BaseComponentType"/> |
|---|
| 65 |
</xs:complexContent> |
|---|
| 66 |
</xs:complexType> |
|---|
| 67 |
|
|---|
| 68 |
<xs:element name="x-wscalendar-gluon" type="xcal:WsCalendarGluonType" |
|---|
| 69 |
substitutionGroup="xcal:baseComponent"/> |
|---|
| 70 |
|
|---|
| 71 |
<!-- ===================================================================== |
|---|
| 72 |
3.7 Calendar Properties |
|---|
| 73 |
===================================================================== --> |
|---|
| 74 |
|
|---|
| 75 |
<xs:complexType name="WscalendarTypeType"> |
|---|
| 76 |
<xs:complexContent mixed="false"> |
|---|
| 77 |
<xs:extension base="xcal:TextPropertyType"/> |
|---|
| 78 |
</xs:complexContent> |
|---|
| 79 |
</xs:complexType> |
|---|
| 80 |
|
|---|
| 81 |
<xs:complexType name="WscalendarAttachType"> |
|---|
| 82 |
<xs:annotation> |
|---|
| 83 |
<xs:documentation>types the content of the xCal attach element</xs:documentation> |
|---|
| 84 |
</xs:annotation> |
|---|
| 85 |
<xs:complexContent mixed="false"> |
|---|
| 86 |
<xs:extension base="xcal:BasePropertyType"> |
|---|
| 87 |
<xs:choice minOccurs="0" maxOccurs="unbounded"> |
|---|
| 88 |
<xs:element name="artifact" block=""> |
|---|
| 89 |
<xs:complexType> |
|---|
| 90 |
<xs:annotation> |
|---|
| 91 |
<xs:documentation>The artifact is here for use in extending by other specifications, to to allow attributes from other namespaces to be added to ws-calendar-based schemas.</xs:documentation> |
|---|
| 92 |
</xs:annotation> |
|---|
| 93 |
<xs:complexContent> |
|---|
| 94 |
<xs:restriction base="xs:anyType"> |
|---|
| 95 |
<xs:anyAttribute namespace="##other" processContents="lax"/> |
|---|
| 96 |
</xs:restriction> |
|---|
| 97 |
</xs:complexContent> |
|---|
| 98 |
</xs:complexType> |
|---|
| 99 |
</xs:element> |
|---|
| 100 |
<xs:element ref="xcal:uri"/> |
|---|
| 101 |
<xs:element ref="xcal:text"/> |
|---|
| 102 |
</xs:choice> |
|---|
| 103 |
</xs:extension> |
|---|
| 104 |
</xs:complexContent> |
|---|
| 105 |
</xs:complexType> |
|---|
| 106 |
|
|---|
| 107 |
<xs:element name="x-wscalendar-attach" |
|---|
| 108 |
type="xcal:WscalendarAttachType" |
|---|
| 109 |
substitutionGroup="xcal:baseProperty" /> |
|---|
| 110 |
|
|---|
| 111 |
<xs:element name="x-wscalendar-type" |
|---|
| 112 |
type="xcal:WscalendarTypeType" |
|---|
| 113 |
substitutionGroup="xcal:baseProperty" /> |
|---|
| 114 |
</xs:schema> |
|---|