annotate _test/Resources/resources.xsd @ 222:84a6382b49c8

resources schema in progress
author sergey
date Mon, 27 Aug 2012 17:28:32 +0400
parents e997e6fbac0b
children edf011437be8
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
218
sergey
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
2 <schema targetNamespace="http://implab.org/schemas/resources"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
3 elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
4 xmlns:tns="http://implab.org/schemas/resources">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
5 <element name="resources">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
6 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
7 <sequence>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
8 <element name="root" type="tns:resourceContract" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
9 <element name="typeMap" minOccurs="0">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
10 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
11 <sequence>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
12 <element name="contract" maxOccurs="unbounded">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
13 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
14 <complexContent>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
15 <extension base="tns:resourceContract">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
16 <sequence></sequence>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
17 <attribute name="type" type="string" use="required">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
18 </attribute>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
19 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
20 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
21 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
22 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
23 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
24 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
25 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
26 <element name="locators" minOccurs="0">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
27 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
28 <sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
29 <element name="locator" maxOccurs="unbounded">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
30 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
31 <complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
32 <extension base="tns:resourceLocator">
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
33 <attribute name="name" type="string" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
34 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
35 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
36 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
37 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
38 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
39 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
40 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
41 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
42 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
43 <keyref name="locator-key-ref" refer="tns:locator-key">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
44 <selector xpath=".//tns:response/tns:locatorRef" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
45 <field xpath="@ref" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
46 </keyref>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
47 <key name="locator-key">
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
48 <selector xpath="tns:locators/tns:locator" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
49 <field xpath="@name" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
50 </key>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
51 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
52
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
53 <!-- abstract types -->
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
54 <complexType name="abstractBinding" abstract="true" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
55 <complexType name="abstractTransformation" abstract="true" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
56 <complexType name="abstractResult" abstract="true" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
57
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
58 <complexType name="resourceContract">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
59 <sequence>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
60 <group ref="tns:restOperations"></group>
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
61 <element name="resource" maxOccurs="unbounded" minOccurs="0">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
62 <complexType>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
63 <sequence>
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
64 <element name="contract" type="tns:resourceContract" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
65 </sequence>
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
66 <attribute name="name" type="string" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
67 </complexType>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
68 </element>
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
69 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
70 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
71
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
72 <group name="restOperations">
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
73 <sequence>
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
74 <element name="get" type="tns:operationContract" minOccurs="0" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
75 <element name="post" type="tns:operationContract" minOccurs="0" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
76 <element name="put" type="tns:operationContract" minOccurs="0" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
77 <element name="delete" type="tns:operationContract"
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
78 minOccurs="0" />
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
79 </sequence>
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
80 </group>
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
81
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
82 <complexType name="operationContract">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
83 <sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
84 <element name="bind" type="tns:methodBinding" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
85 <element name="parameters" type="tns:transformation"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
86 minOccurs="0" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
87 <element name="response" type="tns:abstractResult" minOccurs="0" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
88 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
89 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
90
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
91 <complexType name="methodBinding">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
92 <sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
93 <element name="var" type="tns:bindingVariable" minOccurs="0"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
94 maxOccurs="unbounded" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
95 </sequence>
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
96 <attribute name="bind" type="string" use="required" />
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
97 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
98
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
99 <complexType name="bindingVariable">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
100 <complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
101 <extension base="tns:methodBinding">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
102 <attribute name="name" type="string" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
103 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
104 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
105 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
106
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
107
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
108 <complexType name="transformation">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
109 <attribute name="class" type="string" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
110 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
111
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
112 <complexType name="resourceLocator">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
113 <sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
114 <element name="var" type="tns:bindingVariable" minOccurs="0"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
115 maxOccurs="unbounded" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
116 <element name="template" type="string" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
117 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
118 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
119
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
120 <simpleType name="redirectCodes">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
121 <restriction base="string">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
122 <enumeration value="moved-permanently" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
123 <enumeration value="temporary-redirect" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
124 <enumeration value="see-other" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
125 </restriction>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
126 </simpleType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
127
222
84a6382b49c8 resources schema in progress
sergey
parents: 221
diff changeset
128 <complexType name="redirectResponse">
221
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
129 <complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
130 <extension base="tns:abstractResult">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
131 <choice>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
132 <element name="locator" type="tns:resourceLocator" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
133 <element name="locatorRef">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
134 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
135 <attribute name="ref" type="string" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
136 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
137 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
138 <element name="status" type="tns:redirectCodes" minOccurs="0" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
139 </choice>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
140 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
141 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
142 </complexType>
219
sergey
parents: 218
diff changeset
143
218
sergey
parents:
diff changeset
144 </schema>