-
Notifications
You must be signed in to change notification settings - Fork 29
/
event.xsd
144 lines (137 loc) · 4.9 KB
/
event.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://educations.com/XmlImport"
elementFormDefault="qualified"
xmlns="http://educations.com/XmlImport"
xmlns:xi="http://educations.com/XmlImport"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
<xs:include schemaLocation="location.xsd" />
<xs:include schemaLocation="event-start-info.xsd" />
<xs:include schemaLocation="currency.xsd" />
<xs:include schemaLocation="language.xsd" />
<xs:complexType name="Event" abstract="true">
<xs:all>
<xs:element name="pace" minOccurs="0" default="100.00">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:minInclusive value="0.0" />
<xs:maxInclusive value="100.0" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="price" type="Price" minOccurs="0" />
<xs:element name="start" type="StartInfo" minOccurs="0" />
<xs:element name="additionalInfo" type="AdditionalInfo" minOccurs="0" />
<xs:element name="applicationInfo" type="EventApplication" minOccurs="0" maxOccurs="1" />
<xs:element name="lastApplicationDate" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:choice>
<xs:element name="date" type="xs:date" />
<xs:element name="text" type="xs:string" />
</xs:choice>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="uniqueIdentifier" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
<xs:maxLength value="128" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="eventTypeID" use="required" type="xs:int" />
<xs:attribute name="language" use="optional" type="KnownLanguages" />
<xs:attribute name="link" use="optional">
<xs:simpleType>
<xs:restriction base="xs:anyURI">
<xs:maxLength value="1024" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:complexType name="LocationEvent">
<xs:annotation>
<xs:documentation xml:lang="en">
An event connected to a specific location of the institute
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="Event">
<xs:attribute name="locationUID" type="xs:string" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="AreaEvent">
<xs:annotation>
<xs:documentation xml:lang="en">
An event generally available in a place such a region or a country.
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="Event">
<xs:attribute name="place" type="xs:string" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="DistanceEvent">
<xs:annotation>
<xs:documentation xml:lang="en">
.....
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="Event"/>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="AdditionalInfo">
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="item">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="key" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="32"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Price">
<xs:attribute name="vat" use="optional">
<xs:simpleType>
<xs:restriction base="xs:decimal">
<xs:minInclusive value="0.0" />
<xs:maxInclusive value="100.0" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="currency" use="optional" type="KnownCurrencies" />
<xs:attribute name="vatIncluded" use="optional" type="xs:boolean" />
<xs:attribute name="price" type="xs:decimal" use="required" />
</xs:complexType>
<xs:complexType name="EventApplication">
<xs:attribute name="url" use="required">
<xs:simpleType>
<xs:restriction base="xs:anyURI">
<xs:maxLength value="1024" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="applicationCode" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="64" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="startDate" type="xs:date" use="optional" />
<xs:attribute name="endDate" type="xs:date" use="optional" />
</xs:complexType>
</xs:schema>