forked from DigitalCampus/moodle-block_oppia_mobile_export
-
Notifications
You must be signed in to change notification settings - Fork 0
/
oppia-schema.xsd
154 lines (145 loc) · 5.8 KB
/
oppia-schema.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
145
146
147
148
149
150
151
152
153
154
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:annotation>
<xs:documentation>
Schema for OppiaMobile course XML files
Digital Campus
Version: 5
Date: 15 May 2018
</xs:documentation>
</xs:annotation>
<xs:element name="module">
<xs:complexType>
<xs:sequence>
<xs:element name="meta" minOccurs="1" maxOccurs="1" type="MetaType" />
<xs:element name="structure" minOccurs="1" maxOccurs="1" type="StructureType" />
<xs:element name="media" minOccurs="0" maxOccurs="1" type="MediaType" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="MetaType">
<xs:sequence>
<xs:element name="versionid" minOccurs="1" maxOccurs="1" type="xs:positiveInteger" />
<xs:element name="priority" minOccurs="0" maxOccurs="1" type="xs:integer" />
<xs:element name="server" minOccurs="0" maxOccurs="1" type="xs:string" />
<xs:element name="sequencing" minOccurs="0" maxOccurs="1" type="xs:string" />
<xs:element name="tags" minOccurs="0" maxOccurs="1" type="xs:string" />
<xs:element name="exportversion" minOccurs="0" maxOccurs="1" type="xs:positiveInteger" />
<xs:element name="title" minOccurs="1" maxOccurs="unbounded" type="LangType" />
<xs:element name="shortname" minOccurs="1" maxOccurs="1" />
<xs:element name="description" minOccurs="0" maxOccurs="unbounded" type="LangType" />
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="page" type="PageType" />
<xs:element name="activity" type="ActivityType" />
</xs:choice>
<xs:element name="image" minOccurs="0" maxOccurs="unbounded" />
<xs:element name="langs" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="lang" minOccurs="1" maxOccurs="unbounded" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="gamification" minOccurs="0" maxOccurs="1" type="GamificationType"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="LangType">
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="lang" type="xs:string">
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="PageType">
<xs:sequence>
<xs:element name="title" minOccurs="1" maxOccurs="unbounded" type="LangType" />
<xs:element name="image" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:attribute name="filename" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="location" minOccurs="1" maxOccurs="unbounded" type="LangType" />
</xs:sequence>
<xs:attribute name="id" type="xs:positiveInteger" />
</xs:complexType>
<xs:complexType name="StructureType">
<xs:sequence>
<xs:element name="section" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="title" minOccurs="1" maxOccurs="unbounded" type="LangType" />
<xs:element name="image" minOccurs="0" maxOccurs="1" />
<xs:element name="activities" minOccurs="1" maxOccurs="1">
<xs:complexType>
<xs:sequence>
<xs:element name="activity" minOccurs="1" maxOccurs="unbounded" type="ActivityType" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="order" type="xs:positiveInteger" use="required" />
<xs:attribute name="password" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="ActivityType">
<xs:sequence>
<xs:element name="title" minOccurs="1" maxOccurs="unbounded" type="LangType" />
<xs:choice minOccurs="1" maxOccurs="unbounded">
<xs:element name="media" minOccurs="0" maxOccurs="unbounded" type="MediaType" />
<xs:element name="content" minOccurs="0" maxOccurs="unbounded" type="LangType" />
<xs:element name="description" minOccurs="0" maxOccurs="unbounded" type="LangType" />
<xs:element name="related" minOccurs="0" maxOccurs="1" />
<xs:element name="location" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="lang" type="xs:string" />
<xs:attribute name="type" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="image" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="filename" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="gamification" minOccurs="0" maxOccurs="1" type="GamificationType"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="type" type="xs:string" />
<xs:attribute name="order" type="xs:positiveInteger" />
<xs:attribute name="digest" type="xs:string" />
</xs:complexType>
<xs:complexType name="MediaType">
<xs:sequence>
<xs:element name="file" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="gamification" minOccurs="0" maxOccurs="1" type="GamificationType"/>
</xs:sequence>
<xs:attribute name="filename" type="xs:string" use="required" />
<xs:attribute name="download_url" type="xs:string" use="required" />
<xs:attribute name="digest" type="xs:string" use="required" />
<xs:attribute name="filesize" type="xs:positiveInteger" use="optional" />
<xs:attribute name="length" type="xs:positiveInteger" use="optional" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="GamificationType">
<xs:sequence>
<xs:element name="event" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="name" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>