-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstory.xsd
173 lines (132 loc) · 5.88 KB
/
story.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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.example.org/story" elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tms="http://www.example.org/story">
<xsd:complexType name="Scene">
<xsd:sequence>
<xsd:element name="Title" type="tms:MultilanguageText"></xsd:element>
<xsd:element name="Hint" type="tms:MultilanguageText"></xsd:element>
<xsd:element name="Objects" type="tms:Objects"></xsd:element>
</xsd:sequence>
<xsd:attribute ref="tms:background" use="required"></xsd:attribute>
<xsd:attribute ref="tms:sceneID" use="required"></xsd:attribute>
<xsd:attribute ref="tms:authorID"></xsd:attribute>
<xsd:attribute ref="tms:cover"></xsd:attribute>
</xsd:complexType>
<xsd:element name="Story" type="tms:Story"></xsd:element>
<xsd:complexType name="Story">
<xsd:sequence>
<xsd:element name="Title" type="tms:MultilanguageText" maxOccurs="1"
minOccurs="1">
</xsd:element>
<xsd:element name="Description" type="tms:MultilanguageText"
maxOccurs="1" minOccurs="1">
</xsd:element>
<xsd:element name="Languages" type="tms:Language"
maxOccurs="1" minOccurs="1">
</xsd:element>
<xsd:element name="Scenes" type="tms:Scenes"
maxOccurs="1" minOccurs="1">
</xsd:element>
</xsd:sequence>
<xsd:attribute ref="tms:xmlSchema" use="required"></xsd:attribute>
<xsd:attribute ref="tms:authorID" use="required"></xsd:attribute>
<xsd:attribute ref="tms:storyID" use="required"></xsd:attribute>
<xsd:attribute ref="tms:cover" use="required"></xsd:attribute>
<xsd:attribute ref="tms:sound" use="required"></xsd:attribute>
</xsd:complexType>
<xsd:complexType name="BasicElement">
<xsd:sequence>
<xsd:element name="Positionable" type="tms:Quadrant"></xsd:element>
</xsd:sequence>
<xsd:attribute ref="tms:visual" use="required"></xsd:attribute>
</xsd:complexType>
<xsd:element name="Scenes" type="tms:Scenes"></xsd:element>
<xsd:attribute name="storyID" type="xsd:string"></xsd:attribute>
<xsd:attribute name="authorID" type="xsd:string"></xsd:attribute>
<xsd:attribute name="cover" type="xsd:anyURI"></xsd:attribute>
<xsd:attribute name="visual" type="xsd:anyURI"></xsd:attribute>
<xsd:attribute name="sound" type="xsd:anyURI"></xsd:attribute>
<xsd:attribute name="language" type="xsd:language"></xsd:attribute>
<xsd:complexType name="Text">
<xsd:sequence>
<xsd:element name="value" type="xsd:string"></xsd:element>
</xsd:sequence>
<xsd:attribute ref="tms:language" use="required"></xsd:attribute>
</xsd:complexType>
<xsd:attribute name="xmlSchema" type="xsd:string"></xsd:attribute>
<xsd:complexType name="Language">
<xsd:sequence>
<xsd:element name="Language" type="xsd:language" maxOccurs="unbounded" minOccurs="1"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="MultilanguageText">
<xsd:sequence>
<xsd:element name="Text" type="tms:Text" maxOccurs="unbounded" minOccurs="1"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Scenes">
<xsd:sequence>
<xsd:element name="Scene" type="tms:Scene" maxOccurs="unbounded" minOccurs="0"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:attribute name="background" type="xsd:anyURI"></xsd:attribute>
<xsd:attribute name="sceneID" type="xsd:string"></xsd:attribute>
<xsd:attribute name="col" type="xsd:int"></xsd:attribute>
<xsd:attribute name="row" type="xsd:int"></xsd:attribute>
<xsd:complexType name="Quadrant">
<xsd:attribute ref="tms:col" use="required"></xsd:attribute>
<xsd:attribute ref="tms:row" use="required"></xsd:attribute>
</xsd:complexType>
<xsd:complexType name="Sound">
<xsd:attribute ref="tms:sound" use="required"></xsd:attribute>
</xsd:complexType>
<xsd:complexType name="Element">
<xsd:complexContent>
<xsd:extension base="tms:BasicElement">
<xsd:sequence>
<xsd:element name="AssociativeSound" type="tms:Sound"></xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="DraggableElement">
<xsd:complexContent>
<xsd:extension base="tms:BasicElement">
<xsd:sequence>
<xsd:element name="Destination"
type="tms:Quadrant">
</xsd:element>
<xsd:element name="HintOnFailure"
type="tms:MultilanguageText">
</xsd:element>
<xsd:element name="HintOnSuccess"
type="tms:MultilanguageText">
</xsd:element>
</xsd:sequence>
<xsd:attribute ref="tms:nextSceneID"></xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="InteractionableElement">
<xsd:complexContent>
<xsd:extension base="tms:Element">
<xsd:sequence>
<xsd:element name="Hint"
type="tms:MultilanguageText">
</xsd:element>
</xsd:sequence>
<xsd:attribute ref="tms:nextSceneID"></xsd:attribute>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:attribute name="nextSceneID" type="xsd:string"></xsd:attribute>
<xsd:complexType name="Objects">
<xsd:sequence>
<xsd:element name="BasicElement" type="tms:BasicElement" maxOccurs="unbounded" minOccurs="0"></xsd:element>
<xsd:element name="Element" type="tms:Element" maxOccurs="unbounded" minOccurs="0"></xsd:element>
<xsd:element name="InteractionableElement"
type="tms:InteractionableElement" maxOccurs="unbounded" minOccurs="0">
</xsd:element>
<xsd:element name="DraggableElement" type="tms:DraggableElement" maxOccurs="unbounded" minOccurs="0"></xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>