blob: 2a99c1b36f155f662acf28cc81d6afa50d1b7955 [file] [log] [blame]
Stefano Lenzi476013d2007-09-21 23:59:54 +00001<?xml version="1.0" encoding="ISO-8859-1" ?>
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
3<!-- definition of simple elements -->
4
5<!-- definition of attribute -->
6<xs:attribute name="name" type="xs:string"/>
7<xs:attribute name="filter" type="xs:string"/>
8<xs:attribute name="extend" type="xs:boolean"/>
9<xs:attribute name="multiple" type="xs:boolean"/>
10<xs:attribute name="optional" type="xs:boolean"/>
11<xs:attribute name="id" type="xs:string"/>
12<xs:attribute name="n" type="xs:string"/>
13<xs:attribute name="v" type="xs:string"/>
14<xs:attribute name="t" type="xs:string"/>
15
16<xs:element name="require">
17 <xs:complexType mixed="true">
18 <xs:attribute ref="name" use="required"/>
19 <xs:attribute ref="filter" use="required"/>
20 <xs:attribute ref="extend" use="required"/>
21 <xs:attribute ref="multiple" use="required"/>
22 <xs:attribute ref="optional" use="required"/>
23 </xs:complexType>
24</xs:element>
25
26<xs:element name="category">
27 <xs:complexType>
28 <xs:attribute ref="id" use="required"/>
29 </xs:complexType>
30</xs:element>
31
32<xs:element name="p">
33 <xs:complexType>
34 <xs:attribute ref="n" use="required"/>
35 <xs:attribute ref="v" use="required"/>
36 <xs:attribute ref="t" />
37 </xs:complexType>
38</xs:element>
39
40
41<xs:element name="capability">
42 <xs:complexType>
43 <xs:sequence>
44 <xs:element ref="p" minOccurs="0" maxOccurs="unbounded"/>
45 </xs:sequence>
46 </xs:complexType>
47</xs:element>
48
49<xs:element name="resource">
50 <xs:complexType>
51 <xs:sequence>
52 <xs:element ref="capability" minOccurs="0" maxOccurs="unbounded"/>
53 <xs:element ref="require" minOccurs="0" maxOccurs="unbounded"/>
54 <xs:element ref="category" minOccurs="0" maxOccurs="unbounded"/>
55 </xs:sequence>
56 </xs:complexType>
57</xs:element>
58</xs:schema>