Stuart McCulloch | bb8b9fa | 2008-02-17 16:07:14 +0000 | [diff] [blame] | 1 | <?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>
|
| 64 | </xs:complexType>
|
| 65 | </xs:element>
|
| 66 |
|
| 67 | <xs:element name="resource">
|
| 68 | <xs:complexType>
|
| 69 | <xs:sequence>
|
| 70 | <xs:element ref="capability" minOccurs="0" maxOccurs="unbounded"/>
|
| 71 | <xs:element ref="require" minOccurs="0" maxOccurs="unbounded"/>
|
| 72 | <xs:element ref="category" minOccurs="0" maxOccurs="unbounded"/>
|
| 73 | </xs:sequence>
|
| 74 | </xs:complexType>
|
| 75 | </xs:element>
|
| 76 | </xs:schema>
|