annotate _test/Resources/resources.xsd @ 221:e997e6fbac0b

sync: working on resources schema
author sergey
date Fri, 24 Aug 2012 16:24:14 +0400
parents 5c82c15b25b1
children 84a6382b49c8
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>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
8 <element name="root" type="tns:restResource" />
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>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
12 <element name="item" maxOccurs="unbounded">
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>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
15 <extension base="tns:restResource">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
16 <sequence></sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
17 <attribute name="type" type="string">
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">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
33 <attribute name="name" />
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">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
48 <selector xpath="tns:locators/tns:locator" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
49 <field xpath="@name" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
50 </key>
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
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
58 <complexType name="restResource">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
59 <sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
60 <element name="get" type="tns:restOperation" minOccurs="0" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
61 <element name="post" type="tns:restOperation" minOccurs="0" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
62 <element name="put" type="tns:restOperation" minOccurs="0" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
63 <element name="delete" type="tns:restOperation" minOccurs="0" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
64 <element name="resource" maxOccurs="unbounded"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
65 minOccurs="0" >
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
66 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
67 <complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
68 <extension base="tns:restResource">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
69 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
70 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
71 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
72 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
73 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
74 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
75
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
76 <complexType name="restOperation">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
77 <sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
78 <element name="bind" type="tns:methodBinding" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
79 <element name="parameters" type="tns:transformation"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
80 minOccurs="0" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
81 <element name="response" type="tns:abstractResult" minOccurs="0" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
82 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
83 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
84
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
85 <complexType name="methodBinding">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
86 <sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
87 <element name="var" type="tns:bindingVariable" minOccurs="0"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
88 maxOccurs="unbounded" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
89 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
90 <attribute name="text" type="string" use="required" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
91 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
92
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
93 <complexType name="bindingVariable">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
94 <complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
95 <extension base="tns:methodBinding">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
96 <attribute name="name" type="string" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
97 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
98 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
99 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
100
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
101
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
102 <complexType name="transformation">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
103 <attribute name="class" type="string" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
104 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
105
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
106 <complexType name="resourceLocator">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
107 <sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
108 <element name="var" type="tns:bindingVariable" minOccurs="0"
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
109 maxOccurs="unbounded" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
110 <element name="template" type="string" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
111 </sequence>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
112 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
113
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
114 <simpleType name="redirectCodes">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
115 <restriction base="string">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
116 <enumeration value="moved-permanently" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
117 <enumeration value="temporary-redirect" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
118 <enumeration value="see-other" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
119 </restriction>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
120 </simpleType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
121
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
122 <complexType name="redirectResult">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
123 <complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
124 <extension base="tns:abstractResult">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
125 <choice>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
126 <element name="locator" type="tns:resourceLocator" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
127 <element name="locatorRef">
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
128 <complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
129 <attribute name="ref" type="string" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
130 </complexType>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
131 </element>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
132 <element name="status" type="tns:redirectCodes" minOccurs="0" />
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
133 </choice>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
134 </extension>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
135 </complexContent>
e997e6fbac0b sync: working on resources schema
sergey
parents: 220
diff changeset
136 </complexType>
219
sergey
parents: 218
diff changeset
137
218
sergey
parents:
diff changeset
138 </schema>