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="purpose"/>
20 <xs:attribute ref="direction"/>
21 <xs:attribute ref="orientation"/>
22 <xs:attribute ref="position"/>
25 <xs:attributeGroup name="source_itemsAttrGroup">
26 <xs:attribute ref="count" />
29 <xs:attributeGroup name="block_itemsAttrGroup">
30 <xs:attribute ref="functional_count" />
31 <xs:attribute ref="group_count" />
34 <xs:attributeGroup name="source_itemAttrGroup">
35 <xs:attribute ref="id" />
36 <xs:attribute ref="ref_xml" />
37 <xs:attribute ref="ref_md5" />
38 <xs:attribute ref="name" />
39 <xs:attribute ref="position" />
40 <xs:attribute ref="dimension" />
43 <xs:attributeGroup name="bi_functionalAttrGroup">
44 <xs:attribute ref="id" />
45 <xs:attribute ref="ref_xml" />
46 <xs:attribute ref="ref_md5" />
47 <xs:attribute ref="name" />
48 <xs:attribute ref="position" />
49 <xs:attribute ref="dimension" />
52 <xs:attributeGroup name="source_parameterAttrGroup">
53 <xs:attribute ref="name" />
54 <xs:attribute ref="value" />
55 <xs:attribute ref="context" />
56 <xs:attribute ref="type" />
59 <xs:attributeGroup name="bif_parameterAttrGroup">
60 <xs:attribute ref="name" />
61 <xs:attribute ref="value" />
62 <xs:attribute ref="context" />
63 <xs:attribute ref="type" />
66 <xs:attributeGroup name="source_ifaceAttrGroup">
67 <xs:attribute ref="id" />
68 <xs:attribute ref="name" />
69 <xs:attribute ref="ref_name" />
70 <xs:attribute ref="orientation" />
71 <xs:attribute ref="position" />
74 <xs:attributeGroup name="bif_ifaceAttrGroup">
75 <xs:attribute ref="id" />
76 <xs:attribute ref="name" />
77 <xs:attribute ref="ref_name" />
78 <xs:attribute ref="orientation" />
79 <xs:attribute ref="position" />
82 <xs:attributeGroup name="bi_groupAttrGroup">
83 <xs:attribute ref="id" />
84 <xs:attribute ref="inside_group" />
85 <xs:attribute ref="position" />
86 <xs:attribute ref="dimension" />
89 <xs:attributeGroup name="big_ifaceAttrGroup">
90 <xs:attribute ref="id" />
91 <xs:attribute ref="ref_name" />
92 <xs:attribute ref="orientation" />
93 <xs:attribute ref="position" />
96 <xs:attributeGroup name="connectionAttrGroup">
97 <xs:attribute ref="from" />
98 <xs:attribute ref="to" />
101 <xs:attributeGroup name="modifierAttrGroup">
102 <xs:attribute ref="id" />
103 <xs:attribute ref="type" />
104 <xs:attribute ref="params" />
108 <!-- déclaration des attributs -->
110 <xs:attribute name="count">
112 <xs:restriction base="xs:nonNegativeInteger">
113 <xs:minInclusive value="0"/>
118 <xs:attribute name="id">
120 <xs:restriction base="xs:nonNegativeInteger">
121 <xs:minInclusive value="0"/>
126 <xs:attribute name="upper_scene">
128 <xs:restriction base="xs:integer">
129 <xs:minInclusive value="-1"/>
134 <xs:attribute name="upper_group">
136 <xs:restriction base="xs:integer">
137 <xs:minInclusive value="-1"/>
142 <xs:attribute name="upper_item">
144 <xs:restriction base="xs:integer">
145 <xs:minInclusive value="-1"/>
150 <xs:attribute name="inside_group">
152 <xs:restriction base="xs:nonNegativeInteger">
153 <xs:minInclusive value="0"/>
158 <xs:attribute name="functional_count">
160 <xs:restriction base="xs:nonNegativeInteger">
161 <xs:minInclusive value="0"/>
166 <xs:attribute name="group_count">
168 <xs:restriction base="xs:nonNegativeInteger">
169 <xs:minInclusive value="0"/>
174 <xs:attribute name="value" type="xs:string"/>
176 <xs:attribute name="from">
178 <xs:restriction base="xs:nonNegativeInteger">
179 <xs:minInclusive value="0"/>
184 <xs:attribute name="to">
186 <xs:restriction base="xs:nonNegativeInteger">
187 <xs:minInclusive value="0"/>
192 <xs:attribute name="purpose">
194 <xs:restriction base="xs:string">
195 <xs:enumeration value="data"/>
196 <xs:enumeration value="clock"/>
197 <xs:enumeration value="reset"/>
198 <xs:enumeration value="wishbone"/>
203 <xs:attribute name="direction">
205 <xs:restriction base="xs:string">
206 <xs:enumeration value="input"/>
207 <xs:enumeration value="output"/>
208 <xs:enumeration value="inout"/>
213 <xs:attribute name="orientation">
215 <xs:restriction base="xs:string">
216 <xs:enumeration value="west"/>
217 <xs:enumeration value="east"/>
218 <xs:enumeration value="north"/>
219 <xs:enumeration value="south"/>
224 <xs:attribute name="position" type="xs:string"/>
225 <xs:attribute name="dimension" type="xs:string"/>
226 <xs:attribute name="name" type="xs:string"/>
227 <xs:attribute name="ref_name" type="xs:string"/>
228 <xs:attribute name="ref_xml" type="xs:string"/>
229 <xs:attribute name="ref_md5" type="xs:string"/>
230 <xs:attribute name="context" type="xs:string"/>
231 <xs:attribute name="type" type="xs:string"/>
232 <xs:attribute name="params" type="xs:string"/>
235 <!-- déclaration des groupes d'éléments -->
237 <xs:group name="rootElmtGroup">
239 <xs:element ref="scenes"/>
240 <xs:element ref="connections"/>
241 <xs:element ref="modifiers"/>
245 <xs:group name="sceneElmtGroup">
247 <xs:element ref="group_item"/>
248 <xs:element ref="source_items" minOccurs="0" maxOccurs="unbounded"/>
249 <xs:element ref="block_items"/>
253 <xs:group name="source_itemsElmtGroup">
255 <xs:element ref="source_item" minOccurs="0" maxOccurs="unbounded"/>
259 <xs:group name="block_itemsElmtGroup">
261 <xs:element ref="bi_functional" minOccurs="0" maxOccurs="unbounded"/>
262 <xs:element ref="bi_group" minOccurs="0" maxOccurs="unbounded"/>
266 <xs:group name="source_itemElmtGroup">
268 <xs:element ref="source_parameters"/>
269 <xs:element ref="source_ifaces"/>
273 <xs:group name="bi_functionalElmtGroup">
275 <xs:element ref="bif_parameters"/>
276 <xs:element ref="bif_ifaces"/>
281 <!-- déclaration des éléments -->
283 <xs:element name="scenes">
286 <xs:element ref="scene" maxOccurs="unbounded" />
288 <xs:attribute ref="count"/>
292 <xs:element name="scene">
294 <xs:group ref="sceneElmtGroup"/>
295 <xs:attribute ref="id"/>
296 <xs:attribute ref="upper_scene"/>
300 <xs:element name="group_item">
303 <xs:element ref="group_ifaces" maxOccurs="unbounded" />
305 <xs:attributeGroup ref="group_itemAttrGroup"/>
309 <xs:element name="group_ifaces">
312 <xs:element ref="group_iface" minOccurs="0" maxOccurs="unbounded"/>
314 <xs:attribute ref="count"/>
318 <xs:element name="group_iface">
320 <xs:attributeGroup ref="group_ifaceAttrGroup"/>
324 <xs:element name="source_items">
326 <xs:group ref="source_itemsElmtGroup"/>
327 <xs:attributeGroup ref="source_itemsAttrGroup"/>
331 <xs:element name="block_items">
333 <xs:group ref="block_itemsElmtGroup"/>
334 <xs:attributeGroup ref="block_itemsAttrGroup"/>
338 <xs:element name="source_item">
340 <xs:group ref="source_itemElmtGroup"/>
341 <xs:attributeGroup ref="source_itemAttrGroup"/>
345 <xs:element name="bi_functional">
347 <xs:group ref="bi_functionalElmtGroup"/>
348 <xs:attributeGroup ref="bi_functionalAttrGroup"/>
352 <xs:element name="source_parameters">
355 <xs:element ref="source_parameter" minOccurs="0" maxOccurs="unbounded" />
360 <xs:element name="source_parameter">
362 <xs:attributeGroup ref="source_parameterAttrGroup"/>
366 <xs:element name="bif_parameters">
369 <xs:element ref="bif_parameter" minOccurs="0" maxOccurs="unbounded" />
374 <xs:element name="bif_parameter">
376 <xs:attributeGroup ref="bif_parameterAttrGroup"/>
380 <xs:element name="source_ifaces">
383 <xs:element ref="source_iface" minOccurs="0" maxOccurs="unbounded" />
385 <xs:attribute ref="count"/>
389 <xs:element name="source_iface">
391 <xs:attributeGroup ref="source_ifaceAttrGroup"/>
395 <xs:element name="bif_ifaces">
398 <xs:element ref="bif_iface" minOccurs="0" maxOccurs="unbounded" />
400 <xs:attribute ref="count"/>
404 <xs:element name="bif_iface">
406 <xs:attributeGroup ref="bif_ifaceAttrGroup"/>
410 <xs:element name="bi_group">
413 <xs:element ref="big_ifaces"/>
415 <xs:attributeGroup ref="bi_groupAttrGroup"/>
419 <xs:element name="big_ifaces">
422 <xs:element ref="big_iface" minOccurs="0" maxOccurs="unbounded" />
424 <xs:attribute ref="count" />
428 <xs:element name="big_iface">
430 <xs:attributeGroup ref="big_ifaceAttrGroup" />
434 <xs:element name="connections">
437 <xs:element ref="connection" minOccurs="0" maxOccurs="unbounded"/>
439 <xs:attribute ref="count" />
443 <xs:element name="connection">
445 <xs:attributeGroup ref="connectionAttrGroup"/>
449 <xs:element name="modifiers">
452 <xs:element ref="modifier" minOccurs="0" maxOccurs="unbounded"/>
457 <xs:element name="modifier">
459 <xs:attributeGroup ref="modifierAttrGroup"/>
463 <!-- racine du document -->
465 <xs:element name="blast_project">
467 <xs:group ref="rootElmtGroup"/>