root/trunk/resources/exsynchwsdefs/iCalendar-wscal-extensions.xsd

Revision 3159 (checked in by douglm, 2 years ago)

Add xjc task to allow compilation of xml schemas by JAXB xjc compiler

Add timezones service xml schema + bindings

Minor change to wscal extensions

Line 
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="gluon" type="xcal:WsCalendarGluonType"
69               substitutionGroup="xcal:baseComponent"/>
70
71   <xs:complexType name="WsCalendarIntervalType">
72     <xs:complexContent mixed="false">
73       <xs:extension base="xcal:BaseComponentType"/>
74     </xs:complexContent>
75   </xs:complexType>
76              
77   <xs:element name="interval" type="xcal:WsCalendarIntervalType"
78               substitutionGroup="xcal:baseComponent"/>
79
80   <!-- =====================================================================
81        3.7 Calendar Properties
82        ===================================================================== --> 
83
84   <xs:complexType name="WscalendarTypeType">
85     <xs:complexContent mixed="false">
86       <xs:extension base="xcal:TextPropertyType"/>
87     </xs:complexContent>
88   </xs:complexType>
89    
90   <xs:complexType name="WscalendarAttachType">
91     <xs:annotation>
92       <xs:documentation>types the content of the xCal attach element</xs:documentation>
93     </xs:annotation>
94     <xs:complexContent mixed="false">
95       <xs:extension base="xcal:BasePropertyType">
96         <xs:choice minOccurs="0" maxOccurs="unbounded">
97           <xs:element name="artifact" block="">
98             <xs:complexType>
99               <xs:annotation>
100                 <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>
101               </xs:annotation>
102               <xs:complexContent>
103                 <xs:restriction base="xs:anyType">
104                   <xs:anyAttribute namespace="##other" processContents="lax"/>
105                 </xs:restriction>
106               </xs:complexContent>
107             </xs:complexType>
108           </xs:element>
109           <xs:element ref="xcal:uri"/>
110           <xs:element ref="xcal:text"/>
111         </xs:choice>
112       </xs:extension>
113     </xs:complexContent>
114   </xs:complexType> 
115
116   <xs:element name="x-wscalendar-attach"
117               type="xcal:WscalendarAttachType"
118               substitutionGroup="xcal:baseProperty" />
119
120   <xs:element name="x-wscalendar-type"
121               type="xcal:WscalendarTypeType"
122               substitutionGroup="xcal:baseProperty" />
123 </xs:schema>
Note: See TracBrowser for help on using the browser.