-
Notifications
You must be signed in to change notification settings - Fork 29
/
event-start-info.xsd
67 lines (62 loc) · 2.21 KB
/
event-start-info.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
<?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:complexType name="StartInfo" abstract="true" />
<xs:complexType name="Fixed">
<xs:complexContent>
<xs:extension base="StartInfo">
<xs:attribute name="startDate" type="xs:date" use="required" />
<xs:attribute name="startTime" type="xs:time" use="optional" />
<xs:attribute name="endDate" type="xs:date" use="optional" />
<xs:attribute name="endTime" type="xs:time" use="optional" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="Month">
<xs:complexContent>
<xs:extension base="StartInfo">
<xs:attribute name="year" type="xs:short" use="required" />
<xs:attribute name="month" use="required">
<xs:simpleType>
<xs:restriction base="xs:short">
<xs:minInclusive value="1" />
<xs:maxInclusive value="12" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="Semester">
<xs:complexContent>
<xs:extension base="StartInfo">
<xs:attribute name="semester" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Spring" />
<xs:enumeration value="Summer" />
<xs:enumeration value="Fall" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="year" type="xs:int" use="optional" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="AlwaysOpen">
<xs:complexContent>
<xs:extension base="StartInfo" />
</xs:complexContent>
</xs:complexType>
<xs:complexType name="Text">
<xs:complexContent>
<xs:extension base="StartInfo">
<xs:attribute name="description" type="xs:string" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>