| 1 | <?xml version="1.0"?> |
|---|
| 2 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.orkney.jp" elementFormDefault="qualified"> |
|---|
| 3 | |
|---|
| 4 | <xs:element name="restlet" type="RestletType"> |
|---|
| 5 | <xs:complexType name="RestletType"> |
|---|
| 6 | <xs:element name="port" type="xs:short"/> |
|---|
| 7 | <xs:element name="log" type="xs:string"/> |
|---|
| 8 | <xs:element name="providers" type="ProviderContainer"> |
|---|
| 9 | <xs:complexType name="ProviderContainer"> |
|---|
| 10 | <xs:sequence> |
|---|
| 11 | <xs:element ref="provider" maxOccurs="unbounded"/> |
|---|
| 12 | </xs:sequence> |
|---|
| 13 | </xs:complexType> |
|---|
| 14 | </xs:element> |
|---|
| 15 | </xs:complexType> |
|---|
| 16 | </xs:element> |
|---|
| 17 | |
|---|
| 18 | <xs:element name="provider" type="ProviderType"> |
|---|
| 19 | <xs:complexType name="ProviderType"> |
|---|
| 20 | <xs:attribute name="name" type="xs:string"/> |
|---|
| 21 | <xs:attribute name="title" type="xs:string"/> |
|---|
| 22 | <xs:element name="description" type="xs:string"/> |
|---|
| 23 | <xs:element name="services" type="ServiceContainer"> |
|---|
| 24 | <xs:complexType name="ServiceContainer"> |
|---|
| 25 | <xs:sequence> |
|---|
| 26 | <xs:element ref="service" maxOccurs="unbounded"/> |
|---|
| 27 | </xs:sequence> |
|---|
| 28 | </xs:complexType> |
|---|
| 29 | </xs:element> |
|---|
| 30 | </xs:complexType> |
|---|
| 31 | </xs:element> |
|---|
| 32 | |
|---|
| 33 | <xs:element name="service" type="ServiceType"> |
|---|
| 34 | <xs:complexType name="ServiceType"> |
|---|
| 35 | <xs:attribute name="name" type="xs:string"/> |
|---|
| 36 | <xs:attribute name="title" type="xs:string"/> |
|---|
| 37 | <xs:attribute name="enable" type="xs:boolean"/> |
|---|
| 38 | <xs:element name="description" type="xs:string"/> |
|---|
| 39 | <xs:element name="connection" type="ConnectionType"> |
|---|
| 40 | <xs:complexType name="ConnectionType"> |
|---|
| 41 | <xs:attribute name="driver" type="xs:string"/> |
|---|
| 42 | <xs:sequence> |
|---|
| 43 | <xs:element name="url" type="xs:string"/> |
|---|
| 44 | <xs:element name="user" type="xs:string"/> |
|---|
| 45 | <xs:element name="password" type="xs:string"/> |
|---|
| 46 | </xs:sequence> |
|---|
| 47 | </xs:complexType> |
|---|
| 48 | </xs:element> |
|---|
| 49 | <xs:element name="projection" type="ProjectionType"> |
|---|
| 50 | <xs:complexType name="ProjectionType"> |
|---|
| 51 | <xs:attribute name="srid" type="xs:string"/> |
|---|
| 52 | <xs:attribute name="units" type="xs:string"/> |
|---|
| 53 | <xs:attribute name="extent" type="xs:string"/> |
|---|
| 54 | </xs:complexType> |
|---|
| 55 | </xs:element> |
|---|
| 56 | <xs:element name="limit" type="LimitType"> |
|---|
| 57 | <xs:complexType name="LimitType"> |
|---|
| 58 | <xs:attribute name="distance" type="xs:float"/> |
|---|
| 59 | <xs:attribute name="extent" type="xs:string"/> |
|---|
| 60 | </xs:complexType> |
|---|
| 61 | </xs:element> |
|---|
| 62 | <xs:element name="sql" type="SQLContainer"> |
|---|
| 63 | <xs:complexType name="SQLContainer"> |
|---|
| 64 | <xs:sequence> |
|---|
| 65 | <xs:element ref="query" maxOccurs="unbounded"/> |
|---|
| 66 | </xs:sequence> |
|---|
| 67 | </xs:complexType> |
|---|
| 68 | </xs:element> |
|---|
| 69 | <xs:element name="parameters" type="ParameterContainer"> |
|---|
| 70 | <xs:complexType name="ParameterContainer"> |
|---|
| 71 | <xs:sequence> |
|---|
| 72 | <xs:element ref="parameter" maxOccurs="unbounded"/> |
|---|
| 73 | </xs:sequence> |
|---|
| 74 | </xs:complexType> |
|---|
| 75 | </xs:element> |
|---|
| 76 | <xs:element name="formats" type="FormatContainer"> |
|---|
| 77 | <xs:complexType name="FormatContainer"> |
|---|
| 78 | <xs:sequence> |
|---|
| 79 | <xs:element ref="format" maxOccurs="unbounded"/> |
|---|
| 80 | </xs:sequence> |
|---|
| 81 | </xs:complexType> |
|---|
| 82 | </xs:element> |
|---|
| 83 | </xs:complexType> |
|---|
| 84 | </xs:element> |
|---|
| 85 | |
|---|
| 86 | <xs:element name="query" type="QueryType"> |
|---|
| 87 | <xs:complexType name="QueryType"> |
|---|
| 88 | <xsd:simpleContent> |
|---|
| 89 | <xsd:extension base="xs:string"> |
|---|
| 90 | <xs:attribute name="transformProjectionIn" type="xs:boolean"/> |
|---|
| 91 | <xs:attribute name="transformProjectionOut" type="xs:boolean"/> |
|---|
| 92 | </xsd:extension> |
|---|
| 93 | </xsd:simpleContent> |
|---|
| 94 | </xs:complexType> |
|---|
| 95 | </xs:element> |
|---|
| 96 | |
|---|
| 97 | <xs:element name="parameter" type="ParameterType"> |
|---|
| 98 | <xs:complexType name="ParameterType"> |
|---|
| 99 | <xs:attribute name="name" type="xs:string"/> |
|---|
| 100 | <xs:attribute name="type" type="xs:string"/> |
|---|
| 101 | <xs:attribute name="codename" type="xs:string"/> |
|---|
| 102 | <xs:attribute name="required" type="xs:boolean"/> |
|---|
| 103 | <xs:attribute name="default" type="xs:decimal"/> |
|---|
| 104 | </xs:complexType> |
|---|
| 105 | </xs:element> |
|---|
| 106 | |
|---|
| 107 | <xs:element name="format" type="FormatType"> |
|---|
| 108 | <xs:complexType name="FormatType"> |
|---|
| 109 | <xs:attribute name="name" type="xs:string"/> |
|---|
| 110 | <xs:attribute name="input" type="xs:boolean"/> |
|---|
| 111 | <xs:attribute name="output" type="xs:boolean"/> |
|---|
| 112 | <xs:attribute name="srid" type="xs:integer"/> |
|---|
| 113 | <xs:attribute name="template" type="xs:string"/> |
|---|
| 114 | </xs:complexType> |
|---|
| 115 | </xs:element> |
|---|
| 116 | |
|---|
| 117 | </xs:schema> |
|---|