Project

General

Profile

1
 <?xml version="1.0" encoding="UTF-8"?>
2
 <xs:schema targetNamespace="suiteSchema" 
3
    xmlns="testSuiteSchema" 
4
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
5
    xmlns:ogc="http://www.opengis.net/ogc" 
6
    xmlns:gml="http://www.opengis.net/gml" 
7
    elementFormDefault="qualified" 
8
    attributeFormDefault="unqualified">
9
   <xs:import namespace=”http://www.opengis.net/gml”
10
      schemaLocation="http://schemas.opengis.net/gml/2.0.0/geometry.xsd"/>
11
   <xs:import namespace=”http://www.opengis.net/ogc”
12
      schemaLocation="http://schemas.opengis.net/filter/1.0.0/filter.xsd"/>
13
   <xs:element name="suite">
14
     <xs:complexType>
15
       <xs:sequence>
16
         <xs:element name="name" type="xs:string"/>
17
         <xs:element name="description" type="xs:string" minOccurs="0"/>
18
         <xs:element name="test" maxOccurs="unbounded">
19
           <xs:complexType>
20
             <xs:sequence>
21
               <xs:element name="name" type="xs:string"/>
22
               <xs:element name="description" type="xs:string" 
23
                   minOccurs="0"/>
24
               <xs:element name="plugin" type="xs:string"/>
25
               <xs:element name="argument" minOccurs="0"
26
                   maxOccurs="unbounded">
27
                 <xs:complexType>
28
                   <xs:sequence>
29
                     <xs:element name="name" type="xs:string"/>
30
                     <xs:choice>
31
                       <xs:element name="filter" type="ogc:FilterType"/>
32
                       <xs:element name="geometry"
33
                           type="gml:AbstractGeometryType"/>
34
                       <xs:element name="bbox" type="ogc:BBOXType"/>
35
                       <xs:element name="short" type="xs:short"/>
36
                       <xs:element name="integer" type="xs:integer"/>
37
                       <xs:element name="long" type="xs:long"/>
38
                       <xs:element name="float" type="xs:float"/>
39
                       <xs:element name="double" type="xs:double"/>
40
                       <xs:element name="datetime" type="xs:dateTime"/>
41
                       <xs:element name="anyURI" type="xs:anyURI"/>
42
                       <xs:element name="boolean" type="xs:boolean"/>
43
                       <xs:element name="string" type="xs:string"/>
44
                     </xs:choice>
45
                   </xs:sequence>
46
                 </xs:complexType>
47
               </xs:element>
48
             </xs:sequence>
49
           </xs:complexType>
50
         </xs:element>
51
       </xs:sequence>
52
     </xs:complexType>
53
   </xs:element>
54
 </xs:schema>
(2-2/2)