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="purpose"/>
22 <xs:attribute ref="multiplicity"/>
26 <!-- déclaration des attributs -->
28 <xs:attribute name="ids" type="xs:string"/>
29 <xs:attribute name="name" type="xs:string"/>
30 <xs:attribute name="type" type="xs:string"/>
31 <xs:attribute name="core" type="xs:string"/>
32 <xs:attribute name="wishbone" type="xs:string"/>
33 <xs:attribute name="context" type="xs:string" />
34 <xs:attribute name="multiplicity" type="xs:string" />
35 <xs:attribute name="width" type="xs:string"/>
36 <xs:attribute name="purpose" type="xs:string"/>
37 <xs:attribute name="value" type="xs:string"/>
38 <xs:attribute name="iface" type="xs:string"/>
39 <xs:attribute name="path" type="xs:string" />
42 <!-- déclaration des groupes d'éléments -->
44 <xs:group name="blockElmtGroup">
46 <xs:element ref="informations"/>
47 <xs:element ref="parameters"/>
48 <xs:element ref="interfaces"/>
49 <xs:element ref="implementations" minOccurs="0"/>
53 <xs:group name="informationsElmtGroup">
55 <xs:element ref="name"/>
56 <xs:element ref="category"/>
57 <xs:element ref="description"/>
61 <xs:group name="descriptionElmtGroup">
63 <xs:element ref="brief"/>
64 <xs:element ref="detailed"/>
68 <xs:group name="interfacesElmtGroup">
70 <xs:element ref="inputs" minOccurs="0"/>
71 <xs:element ref="outputs" minOccurs="1"/>
72 <xs:element ref="bidirs" minOccurs="0"/>
77 <!-- déclaration des éléments -->
79 <xs:element name="informations">
81 <xs:group ref="informationsElmtGroup"/>
85 <xs:element name="name" type="xs:string" />
87 <xs:element name="category">
89 <xs:attribute ref="ids" use="required"/>
93 <xs:element name="description">
95 <xs:group ref="descriptionElmtGroup"/>
99 <xs:element name="brief" type="xs:string" />
101 <xs:element name="detailed" type="xs:string" />
103 <xs:element name="parameters">
106 <xs:element ref="parameter" minOccurs="0" maxOccurs="unbounded"/>
111 <xs:element name="parameter">
113 <xs:attributeGroup ref="parameterAttrGroup"/>
117 <xs:element name="interfaces">
119 <xs:group ref="interfacesElmtGroup"/>
123 <xs:element name="inputs">
126 <xs:element ref="input" maxOccurs="unbounded" />
131 <xs:element name="input">
133 <xs:attributeGroup ref="inOutAttrGroup"/>
137 <xs:element name="outputs">
140 <xs:element ref="output" maxOccurs="unbounded" />
145 <xs:element name="output">
147 <xs:attributeGroup ref="inOutAttrGroup"/>
151 <xs:element name="bidirs">
154 <xs:element ref="bidir" maxOccurs="unbounded" />
159 <xs:element name="bidir">
161 <xs:attributeGroup ref="inOutAttrGroup"/>
165 <xs:element name="implementations">
168 <xs:element ref="implementation" maxOccurs="unbounded" />
173 <xs:element name="implementation">
175 <xs:attribute ref="path" use="required" />
180 <!-- Racine du document -->
182 <xs:element name="block">
184 <xs:group ref="blockElmtGroup"/>