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" type="xs:string"/>
142 <xs:attribute name="from">
144 <xs:restriction base="xs:nonNegativeInteger">
145 <xs:minInclusive value="0"/>
150 <xs:attribute name="to">
152 <xs:restriction base="xs:nonNegativeInteger">
153 <xs:minInclusive value="0"/>
158 <xs:attribute name="position" type="xs:string"/>
159 <xs:attribute name="dimension" type="xs:string"/>
160 <xs:attribute name="direction" type="xs:string"/>
161 <xs:attribute name="orientation" type="xs:string"/>
162 <xs:attribute name="name" type="xs:string"/>
163 <xs:attribute name="ref_name" type="xs:string"/>
164 <xs:attribute name="ref_xml" type="xs:string"/>
165 <xs:attribute name="ref_md5" type="xs:string"/>
166 <xs:attribute name="context" type="xs:string"/>
167 <xs:attribute name="type" type="xs:string"/>
170 <!-- déclaration des groupes d'éléments -->
172 <xs:group name="rootElmtGroup">
174 <xs:element ref="scenes"/>
175 <xs:element ref="connections"/>
179 <xs:group name="sceneElmtGroup">
181 <xs:element ref="group_item"/>
182 <xs:element ref="block_items"/>
186 <xs:group name="block_itemsElmtGroup">
188 <xs:element ref="bi_group" minOccurs="0" maxOccurs="unbounded"/>
189 <xs:element ref="bi_functional" minOccurs="0" maxOccurs="unbounded"/>
193 <xs:group name="bi_functionalElmtGroup">
195 <xs:element ref="bif_parameters"/>
196 <xs:element ref="bif_ifaces"/>
201 <!-- déclaration des éléments -->
203 <xs:element name="scenes">
206 <xs:element ref="scene" maxOccurs="unbounded" />
208 <xs:attribute ref="count"/>
212 <xs:element name="scene">
214 <xs:group ref="sceneElmtGroup"/>
215 <xs:attribute ref="id"/>
216 <xs:attribute ref="upper_scene"/>
220 <xs:element name="group_item">
223 <xs:element ref="group_ifaces" maxOccurs="unbounded" />
225 <xs:attributeGroup ref="group_itemAttrGroup"/>
229 <xs:element name="group_ifaces">
232 <xs:element ref="group_iface" minOccurs="0" maxOccurs="unbounded"/>
234 <xs:attribute ref="count"/>
238 <xs:element name="group_iface">
240 <xs:attributeGroup ref="group_ifaceAttrGroup"/>
244 <xs:element name="block_items">
246 <xs:group ref="block_itemsElmtGroup"/>
247 <xs:attributeGroup ref="block_itemsAttrGroup"/>
251 <xs:element name="bi_functional">
253 <xs:group ref="bi_functionalElmtGroup"/>
254 <xs:attributeGroup ref="bi_functionalAttrGroup"/>
258 <xs:element name="bif_parameters">
261 <xs:element ref="bif_parameter" minOccurs="0" maxOccurs="unbounded" />
266 <xs:element name="bif_parameter">
268 <xs:attributeGroup ref="bif_parameterAttrGroup"/>
272 <xs:element name="bif_ifaces">
275 <xs:element ref="bif_iface" minOccurs="0" maxOccurs="unbounded" />
277 <xs:attribute ref="count"/>
281 <xs:element name="bif_iface">
283 <xs:attributeGroup ref="bif_ifaceAttrGroup"/>
287 <xs:element name="bi_group">
290 <xs:element ref="big_ifaces"/>
292 <xs:attributeGroup ref="bi_groupAttrGroup"/>
296 <xs:element name="big_ifaces">
299 <xs:element ref="big_iface" minOccurs="0" maxOccurs="unbounded" />
301 <xs:attribute ref="count" />
305 <xs:element name="big_iface">
307 <xs:attributeGroup ref="big_ifaceAttrGroup" />
311 <xs:element name="connections">
314 <xs:element ref="connection" minOccurs="0" maxOccurs="unbounded"/>
316 <xs:attribute ref="count" />
320 <xs:element name="connection">
322 <xs:attributeGroup ref="connectionAttrGroup"/>
326 <!-- racine du document -->
328 <xs:element name="blast_project">
330 <xs:group ref="rootElmtGroup"/>