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"/>
233 <xs:attribute name="project_path" type="xs:string"/>
236 <!-- déclaration des groupes d'éléments -->
238 <xs:group name="rootElmtGroup">
240 <xs:element ref="scenes"/>
241 <xs:element ref="connections"/>
242 <xs:element ref="modifiers"/>
246 <xs:group name="sceneElmtGroup">
248 <xs:element ref="group_item"/>
249 <xs:element ref="source_items" minOccurs="0" maxOccurs="unbounded"/>
250 <xs:element ref="block_items"/>
254 <xs:group name="source_itemsElmtGroup">
256 <xs:element ref="source_item" minOccurs="0" maxOccurs="unbounded"/>
260 <xs:group name="block_itemsElmtGroup">
262 <xs:element ref="bi_functional" minOccurs="0" maxOccurs="unbounded"/>
263 <xs:element ref="bi_group" minOccurs="0" maxOccurs="unbounded"/>
267 <xs:group name="source_itemElmtGroup">
269 <xs:element ref="source_parameters"/>
270 <xs:element ref="source_ifaces"/>
274 <xs:group name="bi_functionalElmtGroup">
276 <xs:element ref="bif_parameters"/>
277 <xs:element ref="bif_ifaces"/>
282 <!-- déclaration des éléments -->
284 <xs:element name="scenes">
287 <xs:element ref="scene" maxOccurs="unbounded" />
289 <xs:attribute ref="count"/>
293 <xs:element name="scene">
295 <xs:group ref="sceneElmtGroup"/>
296 <xs:attribute ref="id"/>
297 <xs:attribute ref="upper_scene"/>
301 <xs:element name="group_item">
304 <xs:element ref="group_ifaces" maxOccurs="unbounded" />
306 <xs:attributeGroup ref="group_itemAttrGroup"/>
310 <xs:element name="group_ifaces">
313 <xs:element ref="group_iface" minOccurs="0" maxOccurs="unbounded"/>
315 <xs:attribute ref="count"/>
319 <xs:element name="group_iface">
321 <xs:attributeGroup ref="group_ifaceAttrGroup"/>
325 <xs:element name="source_items">
327 <xs:group ref="source_itemsElmtGroup"/>
328 <xs:attributeGroup ref="source_itemsAttrGroup"/>
332 <xs:element name="block_items">
334 <xs:group ref="block_itemsElmtGroup"/>
335 <xs:attributeGroup ref="block_itemsAttrGroup"/>
339 <xs:element name="source_item">
341 <xs:group ref="source_itemElmtGroup"/>
342 <xs:attributeGroup ref="source_itemAttrGroup"/>
346 <xs:element name="bi_functional">
348 <xs:group ref="bi_functionalElmtGroup"/>
349 <xs:attributeGroup ref="bi_functionalAttrGroup"/>
353 <xs:element name="source_parameters">
356 <xs:element ref="source_parameter" minOccurs="0" maxOccurs="unbounded" />
361 <xs:element name="source_parameter">
363 <xs:attributeGroup ref="source_parameterAttrGroup"/>
367 <xs:element name="bif_parameters">
370 <xs:element ref="bif_parameter" minOccurs="0" maxOccurs="unbounded" />
375 <xs:element name="bif_parameter">
377 <xs:attributeGroup ref="bif_parameterAttrGroup"/>
381 <xs:element name="source_ifaces">
384 <xs:element ref="source_iface" minOccurs="0" maxOccurs="unbounded" />
386 <xs:attribute ref="count"/>
390 <xs:element name="source_iface">
392 <xs:attributeGroup ref="source_ifaceAttrGroup"/>
396 <xs:element name="bif_ifaces">
399 <xs:element ref="bif_iface" minOccurs="0" maxOccurs="unbounded" />
401 <xs:attribute ref="count"/>
405 <xs:element name="bif_iface">
407 <xs:attributeGroup ref="bif_ifaceAttrGroup"/>
411 <xs:element name="bi_group">
414 <xs:element ref="big_ifaces"/>
416 <xs:attributeGroup ref="bi_groupAttrGroup"/>
420 <xs:element name="big_ifaces">
423 <xs:element ref="big_iface" minOccurs="0" maxOccurs="unbounded" />
425 <xs:attribute ref="count" />
429 <xs:element name="big_iface">
431 <xs:attributeGroup ref="big_ifaceAttrGroup" />
435 <xs:element name="connections">
438 <xs:element ref="connection" minOccurs="0" maxOccurs="unbounded"/>
440 <xs:attribute ref="count" />
444 <xs:element name="connection">
446 <xs:attributeGroup ref="connectionAttrGroup"/>
450 <xs:element name="modifiers">
453 <xs:element ref="modifier" minOccurs="0" maxOccurs="unbounded"/>
458 <xs:element name="modifier">
460 <xs:attributeGroup ref="modifierAttrGroup"/>
464 <!-- racine du document -->
466 <xs:element name="blast_project">
468 <xs:group ref="rootElmtGroup"/>
469 <xs:attribute ref="project_path" />