1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
5 <!-- déclaration des groupes d'attributs -->
7 <xs:attributeGroup name="group_itemAttrGroup">
8 <xs:attribute ref="id"/>
9 <xs:attribute ref="name"/>
10 <xs:attribute ref="upper_group"/>
11 <xs:attribute ref="upper_item"/>
12 <xs:attribute ref="position"/>
13 <xs:attribute ref="dimension"/>
16 <xs:attributeGroup name="group_ifaceAttrGroup">
17 <xs:attribute ref="id"/>
18 <xs:attribute ref="name"/>
19 <xs:attribute ref="direction"/>
20 <xs:attribute ref="orientation"/>
21 <xs:attribute ref="position"/>
24 <xs:attributeGroup name="block_itemsAttrGroup">
25 <xs:attribute ref="functional_count" />
26 <xs:attribute ref="group_count" />
29 <xs:attributeGroup name="bi_functionalAttrGroup">
30 <xs:attribute ref="id" />
31 <xs:attribute ref="ref_xml" />
32 <xs:attribute ref="ref_md5" />
33 <xs:attribute ref="name" />
34 <xs:attribute ref="position" />
35 <xs:attribute ref="dimension" />
38 <xs:attributeGroup name="bif_parameterAttrGroup">
39 <xs:attribute ref="name" />
40 <xs:attribute ref="value" />
41 <xs:attribute ref="context" />
42 <xs:attribute ref="type" />
46 <xs:attributeGroup name="bif_ifaceAttrGroup">
47 <xs:attribute ref="id" />
48 <xs:attribute ref="name" />
49 <xs:attribute ref="ref_name" />
50 <xs:attribute ref="orientation" />
51 <xs:attribute ref="position" />
54 <xs:attributeGroup name="bi_groupAttrGroup">
55 <xs:attribute ref="id" />
56 <xs:attribute ref="inside_group" />
57 <xs:attribute ref="position" />
58 <xs:attribute ref="dimension" />
61 <xs:attributeGroup name="big_ifaceAttrGroup">
62 <xs:attribute ref="id" />
63 <xs:attribute ref="ref_name" />
64 <xs:attribute ref="orientation" />
65 <xs:attribute ref="position" />
68 <xs:attributeGroup name="connectionAttrGroup">
69 <xs:attribute ref="from" />
70 <xs:attribute ref="to" />
74 <!-- déclaration des attributs -->
76 <xs:attribute name="count">
78 <xs:restriction base="xs:nonNegativeInteger">
79 <xs:minInclusive value="0"/>
84 <xs:attribute name="id">
86 <xs:restriction base="xs:nonNegativeInteger">
87 <xs:minInclusive value="0"/>
92 <xs:attribute name="upper_scene">
94 <xs:restriction base="xs:integer">
95 <xs:minInclusive value="-1"/>
100 <xs:attribute name="upper_group">
102 <xs:restriction base="xs:integer">
103 <xs:minInclusive value="-1"/>
108 <xs:attribute name="upper_item">
110 <xs:restriction base="xs:integer">
111 <xs:minInclusive value="-1"/>
116 <xs:attribute name="inside_group">
118 <xs:restriction base="xs:nonNegativeInteger">
119 <xs:minInclusive value="0"/>
124 <xs:attribute name="functional_count">
126 <xs:restriction base="xs:nonNegativeInteger">
127 <xs:minInclusive value="0"/>
132 <xs:attribute name="group_count">
134 <xs:restriction base="xs:nonNegativeInteger">
135 <xs:minInclusive value="0"/>
140 <xs:attribute name="value">
142 <xs:restriction base="xs:nonNegativeInteger">
143 <xs:minInclusive value="0"/>
148 <xs:attribute name="from">
150 <xs:restriction base="xs:nonNegativeInteger">
151 <xs:minInclusive value="0"/>
156 <xs:attribute name="to">
158 <xs:restriction base="xs:nonNegativeInteger">
159 <xs:minInclusive value="0"/>
164 <xs:attribute name="position" type="xs:string"/>
165 <xs:attribute name="dimension" type="xs:string"/>
166 <xs:attribute name="direction" type="xs:string"/>
167 <xs:attribute name="orientation" type="xs:string"/>
168 <xs:attribute name="name" type="xs:string"/>
169 <xs:attribute name="ref_name" type="xs:string"/>
170 <xs:attribute name="ref_xml" type="xs:string"/>
171 <xs:attribute name="ref_md5" type="xs:string"/>
172 <xs:attribute name="context" type="xs:string"/>
173 <xs:attribute name="type" type="xs:string"/>
176 <!-- déclaration des groupes d'éléments -->
178 <xs:group name="rootElmtGroup">
180 <xs:element ref="scenes"/>
181 <xs:element ref="connections"/>
185 <xs:group name="sceneElmtGroup">
187 <xs:element ref="group_item"/>
188 <xs:element ref="block_items"/>
192 <xs:group name="block_itemsElmtGroup">
194 <xs:element ref="bi_group" minOccurs="0" maxOccurs="unbounded"/>
195 <xs:element ref="bi_functional" minOccurs="0" maxOccurs="unbounded"/>
199 <xs:group name="bi_functionalElmtGroup">
201 <xs:element ref="bif_parameters"/>
202 <xs:element ref="bif_ifaces"/>
207 <!-- déclaration des éléments -->
209 <xs:element name="scenes">
212 <xs:element ref="scene" maxOccurs="unbounded" />
214 <xs:attribute ref="count"/>
218 <xs:element name="scene">
220 <xs:group ref="sceneElmtGroup"/>
221 <xs:attribute ref="id"/>
222 <xs:attribute ref="upper_scene"/>
226 <xs:element name="group_item">
229 <xs:element ref="group_ifaces" maxOccurs="unbounded" />
231 <xs:attributeGroup ref="group_itemAttrGroup"/>
235 <xs:element name="group_ifaces">
238 <xs:element ref="group_iface" minOccurs="0" maxOccurs="unbounded"/>
240 <xs:attribute ref="count"/>
244 <xs:element name="group_iface">
246 <xs:attributeGroup ref="group_ifaceAttrGroup"/>
250 <xs:element name="block_items">
252 <xs:group ref="block_itemsElmtGroup"/>
253 <xs:attributeGroup ref="block_itemsAttrGroup"/>
257 <xs:element name="bi_functional">
259 <xs:group ref="bi_functionalElmtGroup"/>
260 <xs:attributeGroup ref="bi_functionalAttrGroup"/>
264 <xs:element name="bif_parameters">
267 <xs:element ref="bif_parameter" minOccurs="0" maxOccurs="unbounded" />
272 <xs:element name="bif_parameter">
274 <xs:attributeGroup ref="bif_parameterAttrGroup"/>
278 <xs:element name="bif_ifaces">
281 <xs:element ref="bif_iface" minOccurs="0" maxOccurs="unbounded" />
283 <xs:attribute ref="count"/>
287 <xs:element name="bif_iface">
289 <xs:attributeGroup ref="bif_ifaceAttrGroup"/>
293 <xs:element name="bi_group">
296 <xs:element ref="big_ifaces"/>
298 <xs:attributeGroup ref="bi_groupAttrGroup"/>
302 <xs:element name="big_ifaces">
305 <xs:element ref="big_iface" minOccurs="0" maxOccurs="unbounded" />
307 <xs:attribute ref="count" />
311 <xs:element name="big_iface">
313 <xs:attributeGroup ref="big_ifaceAttrGroup" />
317 <xs:element name="connections">
320 <xs:element ref="connection" minOccurs="0" maxOccurs="unbounded"/>
322 <xs:attribute ref="count" />
326 <xs:element name="connection">
328 <xs:attributeGroup ref="connectionAttrGroup"/>
332 <!-- racine du document -->
334 <xs:element name="blast_project">
336 <xs:group ref="rootElmtGroup"/>