1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
4 <!-- déclaration des groupes d'attributs -->
6 <xs:attributeGroup name="parameterAttrGroup">
7 <xs:attribute ref="name" use="required"/>
8 <xs:attribute ref="type" use="required"/>
9 <xs:attribute ref="wishbone" use="optional"/>
10 <xs:attribute ref="core" use="optional"/>
11 <xs:attribute ref="value" use="optional"/>
12 <xs:attribute ref="iface" use="optional"/>
13 <xs:attribute ref="width" use="optional"/>
14 <xs:attribute ref="context" use="required"/>
17 <xs:attributeGroup name="inOutAttrGroup">
18 <xs:attribute ref="name" use="required"/>
19 <xs:attribute ref="width" use="required"/>
20 <xs:attribute ref="type"/>
21 <xs:attribute ref="level"/>
22 <xs:attribute ref="purpose"/>
23 <xs:attribute ref="multiplicity"/>
27 <!-- déclaration des attributs -->
29 <xs:attribute name="ids" type="xs:string"/>
30 <xs:attribute name="name" type="xs:string"/>
31 <xs:attribute name="type" type="xs:string"/>
32 <xs:attribute name="core" type="xs:string"/>
33 <xs:attribute name="wishbone" type="xs:string"/>
34 <xs:attribute name="context" type="xs:string" />
35 <xs:attribute name="level" type="xs:string" />
36 <xs:attribute name="multiplicity" type="xs:string" />
37 <xs:attribute name="width" type="xs:string"/>
38 <xs:attribute name="purpose" type="xs:string"/>
39 <xs:attribute name="value" type="xs:string"/>
40 <xs:attribute name="iface" type="xs:string"/>
41 <xs:attribute name="path" type="xs:string" />
44 <!-- déclaration des groupes d'éléments -->
46 <xs:group name="blockElmtGroup">
48 <xs:element ref="informations"/>
49 <xs:element ref="parameters"/>
50 <xs:element ref="interfaces"/>
51 <xs:element ref="implementations" minOccurs="0"/>
55 <xs:group name="informationsElmtGroup">
57 <xs:element ref="name"/>
58 <xs:element ref="category"/>
59 <xs:element ref="description"/>
63 <xs:group name="descriptionElmtGroup">
65 <xs:element ref="brief"/>
66 <xs:element ref="detailed"/>
70 <xs:group name="interfacesElmtGroup">
72 <xs:element ref="inputs" minOccurs="0"/>
73 <xs:element ref="outputs" minOccurs="1"/>
74 <xs:element ref="bidirs" minOccurs="0"/>
79 <!-- déclaration des éléments -->
81 <xs:element name="informations">
83 <xs:group ref="informationsElmtGroup"/>
87 <xs:element name="name" type="xs:string" />
89 <xs:element name="category">
91 <xs:attribute ref="ids" use="required"/>
95 <xs:element name="description">
97 <xs:group ref="descriptionElmtGroup"/>
101 <xs:element name="brief" type="xs:string" />
103 <xs:element name="detailed" type="xs:string" />
105 <xs:element name="parameters">
108 <xs:element ref="parameter" minOccurs="0" maxOccurs="unbounded"/>
113 <xs:element name="parameter">
115 <xs:attributeGroup ref="parameterAttrGroup"/>
119 <xs:element name="interfaces">
121 <xs:group ref="interfacesElmtGroup"/>
125 <xs:element name="inputs">
128 <xs:element ref="input" maxOccurs="unbounded" />
133 <xs:element name="input">
135 <xs:attributeGroup ref="inOutAttrGroup"/>
139 <xs:element name="outputs">
142 <xs:element ref="output" maxOccurs="unbounded" />
147 <xs:element name="output">
149 <xs:attributeGroup ref="inOutAttrGroup"/>
153 <xs:element name="bidirs">
156 <xs:element ref="bidir" maxOccurs="unbounded" />
161 <xs:element name="bidir">
163 <xs:attributeGroup ref="inOutAttrGroup"/>
167 <xs:element name="implementations">
170 <xs:element ref="implementation" maxOccurs="unbounded" />
175 <xs:element name="implementation">
177 <xs:attribute ref="path" use="required" />
182 <!-- Racine du document -->
184 <xs:element name="block">
186 <xs:group ref="blockElmtGroup"/>