blob: 31d5b88fef42196079ef188224734f57e41674f0 [file] [log] [blame]
Stuart McCullochbb8b9fa2008-02-17 16:07:14 +00001<?xml version="1.0" encoding="ISO-8859-1" ?>
2<!--
3 Licensed to the Apache Software Foundation (ASF) under one
4 or more contributor license agreements. See the NOTICE file
5 distributed with this work for additional information
6 regarding copyright ownership. The ASF licenses this file
7 to you under the Apache License, Version 2.0 (the
8 "License"); you may not use this file except in compliance
9 with the License. You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing,
14 software distributed under the License is distributed on an
15 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 KIND, either express or implied. See the License for the
17 specific language governing permissions and limitations
18 under the License.
19-->
20<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
21<!-- definition of simple elements -->
22
23<!-- definition of attribute -->
24<xs:attribute name="name" type="xs:string"/>
25<xs:attribute name="filter" type="xs:string"/>
26<xs:attribute name="extend" type="xs:boolean"/>
27<xs:attribute name="multiple" type="xs:boolean"/>
28<xs:attribute name="optional" type="xs:boolean"/>
29<xs:attribute name="id" type="xs:string"/>
30<xs:attribute name="n" type="xs:string"/>
31<xs:attribute name="v" type="xs:string"/>
32<xs:attribute name="t" type="xs:string"/>
33
34<xs:element name="require">
35 <xs:complexType mixed="true">
36 <xs:attribute ref="name" use="required"/>
37 <xs:attribute ref="filter" use="required"/>
38 <xs:attribute ref="extend" use="required"/>
39 <xs:attribute ref="multiple" use="required"/>
40 <xs:attribute ref="optional" use="required"/>
41 </xs:complexType>
42</xs:element>
43
44<xs:element name="category">
45 <xs:complexType>
46 <xs:attribute ref="id" use="required"/>
47 </xs:complexType>
48</xs:element>
49
50<xs:element name="p">
51 <xs:complexType>
52 <xs:attribute ref="n" use="required"/>
53 <xs:attribute ref="v" use="required"/>
54 <xs:attribute ref="t" />
55 </xs:complexType>
56</xs:element>
57
58
59<xs:element name="capability">
60 <xs:complexType>
61 <xs:sequence>
62 <xs:element ref="p" minOccurs="0" maxOccurs="unbounded"/>
63 </xs:sequence>
Guillaume Nodete9713a52010-02-22 20:00:12 +000064 <xs:attribute name="name" type="xs:string" use="required"/>
Stuart McCullochbb8b9fa2008-02-17 16:07:14 +000065 </xs:complexType>
66</xs:element>
67
68<xs:element name="resource">
69 <xs:complexType>
70 <xs:sequence>
Guillaume Nodete9713a52010-02-22 20:00:12 +000071 <xs:element name="description" type="xs:string" minOccurs="0" maxOccurs="1"/>
72 <xs:element name="size" type="xs:long" minOccurs="0" maxOccurs="1"/>
73 <xs:element name="documentation" type="xs:string" minOccurs="0" maxOccurs="1"/>
74 <xs:element name="source" type="xs:string" minOccurs="0" maxOccurs="1"/>
75 <xs:element name="javadoc" type="xs:string" minOccurs="0" maxOccurs="1"/>
76 <xs:element name="license" type="xs:string" minOccurs="0" maxOccurs="1"/>
77 <xs:element ref="category" minOccurs="0" maxOccurs="unbounded"/>
78 <xs:element ref="capability" minOccurs="0" maxOccurs="unbounded"/>
79 <xs:element ref="require" minOccurs="0" maxOccurs="unbounded"/>
80 </xs:sequence>
81 <xs:attribute ref="id" use="required"/>
82 <xs:attribute name="presentationname" type="xs:string" use="optional"/>
83 <xs:attribute name="symbolicname" type="xs:string" use="optional"/>
84 <xs:attribute name="uri" type="xs:string" use="optional"/>
85 <xs:attribute name="version" type="xs:string" use="optional"/>
Stuart McCullochbb8b9fa2008-02-17 16:07:14 +000086 </xs:complexType>
87</xs:element>
Guillaume Nodete9713a52010-02-22 20:00:12 +000088
89<xs:element name="repository">
90 <xs:complexType>
91 <xs:sequence>
92 <xs:element ref="resource" minOccurs="0" maxOccurs="unbounded"/>
93 </xs:sequence>
94 <xs:attribute name="name" type="xs:string" use="required"/>
95 <xs:attribute name="lastmodified" type="xs:string" use="optional"/>
96 </xs:complexType>
97</xs:element>
98
Stuart McCullochbb8b9fa2008-02-17 16:07:14 +000099</xs:schema>