1 | <?xml version="1.0"?> |
---|
2 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xd="http://www.pnp-software.com/XSLTdoc"> |
---|
3 | <xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en"> |
---|
4 | Some specialised string types |
---|
5 | </xs:documentation></xs:annotation> |
---|
6 | <xs:simpleType name="st__attLabel_def"><xs:restriction base="xs:string"><xs:pattern value="([a-zA-Z0-9-])+"/></xs:restriction></xs:simpleType> |
---|
7 | <xs:simpleType name="st__attLabel_int"><xs:restriction base="xs:integer"/></xs:simpleType> |
---|
8 | <xs:simpleType name="st__attLabel_an"><xs:restriction base="xs:string"><xs:pattern value="([a-zA-Z0-9])+"/></xs:restriction></xs:simpleType> |
---|
9 | <xs:complexType name="ct__info" mixed="true"><xs:attribute name="srcType" type="xs:string"/><xs:attribute name="srcRef" type="xs:string"/></xs:complexType><!--Auto-generated vocabulary complexType declarations/>--> |
---|
10 | <xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">var: Complex Type declaration |
---|
11 | </xs:documentation></xs:annotation> |
---|
12 | <xs:complexType name="ct__var"> |
---|
13 | <xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__var_vocabItem"/></xs:sequence> |
---|
14 | <xs:attribute name="label" type="xs:string" fixed="var"/> |
---|
15 | <xs:attribute name="title" type="xs:string" fixed="MIP Variable"/> |
---|
16 | <xs:attribute name="id" type="xs:string" fixed="cmip.drv.001"/> |
---|
17 | <xs:attribute name="class" fixed="vocab"/> |
---|
18 | </xs:complexType> |
---|
19 | <xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label; |
---|
20 | title; |
---|
21 | sn; |
---|
22 | CF Standard Nameunits; |
---|
23 | Unitsdescription; |
---|
24 | procnote; |
---|
25 | Processing notesprocComment; |
---|
26 | Processing commentsprov; |
---|
27 | Provenanceuuid; |
---|
28 | Record identifier</xs:documentation></xs:annotation> |
---|
29 | <xs:complexType name="ct__var_vocabItem"> |
---|
30 | <xs:attribute name="id" type="xs:string"/> |
---|
31 | <xs:attribute name="label" type="st__attLabel_def"/> |
---|
32 | <xs:attribute name="title" type="xs:string"/><xs:attribute name="sn" type="xs:string"/> |
---|
33 | <xs:attribute name="units" type="xs:string"/> |
---|
34 | <xs:attribute name="description" type="xs:string"/> |
---|
35 | <xs:attribute name="procnote" type="xs:string"/> |
---|
36 | <xs:attribute name="procComment" type="xs:string"/> |
---|
37 | <xs:attribute name="prov" type="xs:string"/> |
---|
38 | <xs:attribute name="uuid" type="xs:string"/> |
---|
39 | |
---|
40 | </xs:complexType><!--Auto-generated vocabulary complexType declarations/>--> |
---|
41 | <xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">ovar: Complex Type declaration |
---|
42 | </xs:documentation></xs:annotation> |
---|
43 | <xs:complexType name="ct__ovar"> |
---|
44 | <xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__ovar_vocabItem"/></xs:sequence> |
---|
45 | <xs:attribute name="label" type="xs:string" fixed="ovar"/> |
---|
46 | <xs:attribute name="title" type="xs:string" fixed="MIP Output Variable"/> |
---|
47 | <xs:attribute name="id" type="xs:string" fixed="cmip.drv.002"/> |
---|
48 | <xs:attribute name="class" fixed="vocab"/> |
---|
49 | </xs:complexType> |
---|
50 | <xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label; |
---|
51 | title; |
---|
52 | uuid; |
---|
53 | title; |
---|
54 | Long namecomment; |
---|
55 | Descriptiondeflate_level; |
---|
56 | shuffle; |
---|
57 | ok_max_mean_abs; |
---|
58 | flag_meanings; |
---|
59 | type; |
---|
60 | ok_min_mean_abs; |
---|
61 | sn; |
---|
62 | CF Standard Namedeflate; |
---|
63 | valid_min; |
---|
64 | cell_methods; |
---|
65 | flag_values; |
---|
66 | cell_measures; |
---|
67 | out_name; |
---|
68 | modeling_realm; |
---|
69 | units; |
---|
70 | cell_methods_xx; |
---|
71 | valid_max; |
---|
72 | positive; |
---|
73 | mipTable; |
---|
74 | dimensions; |
---|
75 | vid; |
---|
76 | Identifier for MIP Variablefrequency; |
---|
77 | Frequency</xs:documentation></xs:annotation> |
---|
78 | <xs:complexType name="ct__ovar_vocabItem"> |
---|
79 | <xs:attribute name="id" type="xs:string"/> |
---|
80 | <xs:attribute name="label" type="st__attLabel_def"/> |
---|
81 | <xs:attribute name="title" type="xs:string"/><xs:attribute name="uuid" type="xs:string"/> |
---|
82 | <xs:attribute name="comment" type="xs:string"/> |
---|
83 | <xs:attribute name="deflate_level" type="xs:string"/> |
---|
84 | <xs:attribute name="shuffle" type="xs:string"/> |
---|
85 | <xs:attribute name="ok_max_mean_abs" type="xs:string"/> |
---|
86 | <xs:attribute name="flag_meanings" type="xs:string"/> |
---|
87 | <xs:attribute name="type" type="xs:string"/> |
---|
88 | <xs:attribute name="ok_min_mean_abs" type="xs:string"/> |
---|
89 | <xs:attribute name="sn" type="xs:string"/> |
---|
90 | <xs:attribute name="deflate" type="xs:string"/> |
---|
91 | <xs:attribute name="valid_min" type="xs:string"/> |
---|
92 | <xs:attribute name="cell_methods" type="xs:string"/> |
---|
93 | <xs:attribute name="flag_values" type="xs:string"/> |
---|
94 | <xs:attribute name="cell_measures" type="xs:string"/> |
---|
95 | <xs:attribute name="out_name" type="xs:string"/> |
---|
96 | <xs:attribute name="modeling_realm" type="xs:string"/> |
---|
97 | <xs:attribute name="units" type="xs:string"/> |
---|
98 | <xs:attribute name="cell_methods_xx" type="xs:string"/> |
---|
99 | <xs:attribute name="valid_max" type="xs:string"/> |
---|
100 | <xs:attribute name="positive" type="xs:string"/> |
---|
101 | <xs:attribute name="mipTable" type="xs:string"/> |
---|
102 | <xs:attribute name="dimensions" type="xs:string"/> |
---|
103 | <xs:attribute name="vid" type="xs:string"/> |
---|
104 | <xs:attribute name="frequency" type="xs:string"/> |
---|
105 | |
---|
106 | </xs:complexType><!--Auto-generated vocabulary complexType declarations/>--> |
---|
107 | <xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">groupItem: Complex Type declaration |
---|
108 | </xs:documentation></xs:annotation> |
---|
109 | <xs:complexType name="ct__groupItem"> |
---|
110 | <xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__groupItem_vocabItem"/></xs:sequence> |
---|
111 | <xs:attribute name="label" type="xs:string" fixed="groupItem"/> |
---|
112 | <xs:attribute name="title" type="xs:string" fixed="Output Group Item"/> |
---|
113 | <xs:attribute name="id" type="xs:string" fixed="cmip.drv.003"/> |
---|
114 | <xs:attribute name="class" fixed="vocab"/> |
---|
115 | </xs:complexType> |
---|
116 | <xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label; |
---|
117 | title; |
---|
118 | group; |
---|
119 | table; |
---|
120 | Source table or 'new' for new variablesfreq; |
---|
121 | FrequencydescriptionEx; |
---|
122 | shape; |
---|
123 | Shape of variable (dimensions)levels; |
---|
124 | Number of vertical levelststyle; |
---|
125 | mask; |
---|
126 | misc; |
---|
127 | mip; |
---|
128 | uuid; |
---|
129 | new; |
---|
130 | gpid; |
---|
131 | Identifier for request linkvkey; |
---|
132 | vid; |
---|
133 | Identifier for MIP Variable</xs:documentation></xs:annotation> |
---|
134 | <xs:complexType name="ct__groupItem_vocabItem"> |
---|
135 | <xs:attribute name="id" type="xs:string"/> |
---|
136 | <xs:attribute name="label" type="st__attLabel_def"/> |
---|
137 | <xs:attribute name="title" type="xs:string"/><xs:attribute name="group" type="xs:string"/> |
---|
138 | <xs:attribute name="table" type="xs:string"/> |
---|
139 | <xs:attribute name="freq" type="xs:string"/> |
---|
140 | <xs:attribute name="descriptionEx" type="xs:string"/> |
---|
141 | <xs:attribute name="shape" type="xs:string"/> |
---|
142 | <xs:attribute name="levels" type="xs:string"/> |
---|
143 | <xs:attribute name="tstyle" type="xs:string"/> |
---|
144 | <xs:attribute name="mask" type="xs:string"/> |
---|
145 | <xs:attribute name="misc" type="xs:string"/> |
---|
146 | <xs:attribute name="mip" type="xs:string"/> |
---|
147 | <xs:attribute name="uuid" type="xs:string"/> |
---|
148 | <xs:attribute name="new" type="xs:string"/> |
---|
149 | <xs:attribute name="gpid" type="xs:string"/> |
---|
150 | <xs:attribute name="vkey" type="xs:string"/> |
---|
151 | <xs:attribute name="vid" type="xs:string"/> |
---|
152 | |
---|
153 | </xs:complexType><!--Auto-generated vocabulary complexType declarations/>--> |
---|
154 | <xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">revisedTabItem: Complex Type declaration |
---|
155 | </xs:documentation></xs:annotation> |
---|
156 | <xs:complexType name="ct__revisedTabItem"> |
---|
157 | <xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__revisedTabItem_vocabItem"/></xs:sequence> |
---|
158 | <xs:attribute name="label" type="xs:string" fixed="revisedTabItem"/> |
---|
159 | <xs:attribute name="title" type="xs:string" fixed="Revised Table Item"/> |
---|
160 | <xs:attribute name="id" type="xs:string" fixed="cmip.drv.004"/> |
---|
161 | <xs:attribute name="class" fixed="vocab"/> |
---|
162 | </xs:complexType> |
---|
163 | <xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label; |
---|
164 | title; |
---|
165 | table; |
---|
166 | mip; |
---|
167 | Endorsed MIP requesting the variableuuid; |
---|
168 | priority; |
---|
169 | vid; |
---|
170 | Identifier for MIP Output Variablevgid; |
---|
171 | Identifier for Variable Group</xs:documentation></xs:annotation> |
---|
172 | <xs:complexType name="ct__revisedTabItem_vocabItem"> |
---|
173 | <xs:attribute name="id" type="xs:string"/> |
---|
174 | <xs:attribute name="label" type="st__attLabel_def"/> |
---|
175 | <xs:attribute name="title" type="xs:string"/><xs:attribute name="table" type="xs:string"/> |
---|
176 | <xs:attribute name="mip" type="xs:string"/> |
---|
177 | <xs:attribute name="uuid" type="xs:string"/> |
---|
178 | <xs:attribute name="priority" type="xs:string"/> |
---|
179 | <xs:attribute name="vid" type="xs:string"/> |
---|
180 | <xs:attribute name="vgid" type="xs:string"/> |
---|
181 | |
---|
182 | </xs:complexType><!--Auto-generated vocabulary complexType declarations/>--> |
---|
183 | <xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">requestVarGroup: Complex Type declaration |
---|
184 | </xs:documentation></xs:annotation> |
---|
185 | <xs:complexType name="ct__requestVarGroup"> |
---|
186 | <xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__requestVarGroup_vocabItem"/></xs:sequence> |
---|
187 | <xs:attribute name="label" type="xs:string" fixed="requestVarGroup"/> |
---|
188 | <xs:attribute name="title" type="xs:string" fixed="Request link: linking a set of variables"/> |
---|
189 | <xs:attribute name="id" type="xs:string" fixed="cmip.drv.005"/> |
---|
190 | <xs:attribute name="class" fixed="vocab"/> |
---|
191 | </xs:complexType> |
---|
192 | <xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label; |
---|
193 | title; |
---|
194 | uuid; |
---|
195 | mip; |
---|
196 | Endorsed MIP requesting the dataref; |
---|
197 | refNote; |
---|
198 | </xs:documentation></xs:annotation> |
---|
199 | <xs:complexType name="ct__requestVarGroup_vocabItem"> |
---|
200 | <xs:attribute name="id" type="xs:string"/> |
---|
201 | <xs:attribute name="label" type="st__attLabel_def"/> |
---|
202 | <xs:attribute name="title" type="xs:string"/><xs:attribute name="uuid" type="xs:string"/> |
---|
203 | <xs:attribute name="mip" type="xs:string"/> |
---|
204 | <xs:attribute name="ref" type="xs:string"/> |
---|
205 | <xs:attribute name="refNote" type="xs:string"/> |
---|
206 | |
---|
207 | </xs:complexType><!--Auto-generated vocabulary complexType declarations/>--> |
---|
208 | <xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">requestLink: Complex Type declaration |
---|
209 | </xs:documentation></xs:annotation> |
---|
210 | <xs:complexType name="ct__requestLink"> |
---|
211 | <xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__requestLink_vocabItem"/></xs:sequence> |
---|
212 | <xs:attribute name="label" type="xs:string" fixed="requestLink"/> |
---|
213 | <xs:attribute name="title" type="xs:string" fixed="Request link: linking a set of variables and a set of experiments."/> |
---|
214 | <xs:attribute name="id" type="xs:string" fixed="cmip.drv.006"/> |
---|
215 | <xs:attribute name="class" fixed="vocab"/> |
---|
216 | </xs:complexType> |
---|
217 | <xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label; |
---|
218 | title; |
---|
219 | uuid; |
---|
220 | mip; |
---|
221 | tab; |
---|
222 | objective; |
---|
223 | grid; |
---|
224 | gridreq; |
---|
225 | comment; |
---|
226 | ref; |
---|
227 | refNote; |
---|
228 | refid; |
---|
229 | reference to a request Variable Group</xs:documentation></xs:annotation> |
---|
230 | <xs:complexType name="ct__requestLink_vocabItem"> |
---|
231 | <xs:attribute name="id" type="xs:string"/> |
---|
232 | <xs:attribute name="label" type="st__attLabel_def"/> |
---|
233 | <xs:attribute name="title" type="xs:string"/><xs:attribute name="uuid" type="xs:string"/> |
---|
234 | <xs:attribute name="mip" type="xs:string"/> |
---|
235 | <xs:attribute name="tab" type="xs:string"/> |
---|
236 | <xs:attribute name="objective" type="xs:string"/> |
---|
237 | <xs:attribute name="grid" type="xs:string"/> |
---|
238 | <xs:attribute name="gridreq" type="xs:string"/> |
---|
239 | <xs:attribute name="comment" type="xs:string"/> |
---|
240 | <xs:attribute name="ref" type="xs:string"/> |
---|
241 | <xs:attribute name="refNote" type="xs:string"/> |
---|
242 | <xs:attribute name="refid" type="xs:string"/> |
---|
243 | |
---|
244 | </xs:complexType><!--Auto-generated vocabulary complexType declarations/>--> |
---|
245 | <xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">requestItem: Complex Type declaration |
---|
246 | </xs:documentation></xs:annotation> |
---|
247 | <xs:complexType name="ct__requestItem"> |
---|
248 | <xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__requestItem_vocabItem"/></xs:sequence> |
---|
249 | <xs:attribute name="label" type="xs:string" fixed="requestItem"/> |
---|
250 | <xs:attribute name="title" type="xs:string" fixed="Request Item: specifying the number of years for an experiment"/> |
---|
251 | <xs:attribute name="id" type="xs:string" fixed="cmip.drv.007"/> |
---|
252 | <xs:attribute name="class" fixed="vocab"/> |
---|
253 | </xs:complexType> |
---|
254 | <xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label; |
---|
255 | title; |
---|
256 | uuid; |
---|
257 | mip; |
---|
258 | tab; |
---|
259 | expt; |
---|
260 | rlid; |
---|
261 | Identifier of corresponding requestLinkny; |
---|
262 | xs:integer</xs:documentation></xs:annotation> |
---|
263 | <xs:complexType name="ct__requestItem_vocabItem"> |
---|
264 | <xs:attribute name="id" type="xs:string"/> |
---|
265 | <xs:attribute name="label" type="st__attLabel_def"/> |
---|
266 | <xs:attribute name="title" type="xs:string"/><xs:attribute name="uuid" type="xs:string"/> |
---|
267 | <xs:attribute name="mip" type="xs:string"/> |
---|
268 | <xs:attribute name="tab" type="xs:string"/> |
---|
269 | <xs:attribute name="expt" type="xs:string"/> |
---|
270 | <xs:attribute name="rlid" type="xs:string"/> |
---|
271 | <xs:attribute name="ny" type="xs:integer"/> |
---|
272 | |
---|
273 | </xs:complexType><!--Auto-generated vocabulary complexType declarations/>--> |
---|
274 | <xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en">remarks: Complex Type declaration |
---|
275 | </xs:documentation></xs:annotation> |
---|
276 | <xs:complexType name="ct__remarks"> |
---|
277 | <xs:sequence><xs:element name="item" maxOccurs="8000" type="ct__remarks_vocabItem"/></xs:sequence> |
---|
278 | <xs:attribute name="label" type="xs:string" fixed="remarks"/> |
---|
279 | <xs:attribute name="title" type="xs:string" fixed="Remarks about other items"/> |
---|
280 | <xs:attribute name="id" type="xs:string" fixed="cmip.drv.008"/> |
---|
281 | <xs:attribute name="class" fixed="vocab"/> |
---|
282 | </xs:complexType> |
---|
283 | <xs:annotation><xs:appinfo>Attribute annotation</xs:appinfo><xs:documentation xml:lang="en">label; |
---|
284 | title; |
---|
285 | uuid; |
---|
286 | tid; |
---|
287 | Target identifier: the record ID of the item this refers to.tattr; |
---|
288 | Target attribute: an attribute of the target item, or 'ALL'description; |
---|
289 | Free text remarks -- unless there are specific restrictions associated with the class attribute of this remarkclass; |
---|
290 | Different classes of remark support a range of specialised usages: free (a free text comment), modelTypeReq (a model type requirement), modelTypeExcl (a model type exclusion), varAlt (an alternative variable that my be used instead of this one), varSup (an alternative variable which, if selected makes this one redundant), attChange (a change in the value of an attribute -- old value provided in 'techNote').qid; |
---|
291 | Identifier required for classes modelTypeReq, modelTypeExcl, varAlt, varSup. For the first two classes, the identifier points to a model type specification, for the last two it points to an output variable specification.techNote; |
---|
292 | Optional additional machine readable content (though not restricted by the schema)prov; |
---|
293 | Provenance</xs:documentation></xs:annotation> |
---|
294 | <xs:complexType name="ct__remarks_vocabItem"> |
---|
295 | <xs:attribute name="id" type="xs:string"/> |
---|
296 | <xs:attribute name="label" type="st__attLabel_def"/> |
---|
297 | <xs:attribute name="title" type="xs:string"/><xs:attribute name="uuid" type="xs:string"/> |
---|
298 | <xs:attribute name="tid" type="xs:string"/> |
---|
299 | <xs:attribute name="tattr" type="xs:string"/> |
---|
300 | <xs:attribute name="description" type="xs:string"/> |
---|
301 | <xs:attribute name="class" type="xs:string"/> |
---|
302 | <xs:attribute name="qid" type="xs:string"/> |
---|
303 | <xs:attribute name="techNote" type="xs:string"/> |
---|
304 | <xs:attribute name="prov" type="xs:string"/> |
---|
305 | |
---|
306 | </xs:complexType><xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en"> |
---|
307 | This schema is automatically generated by xsltproc. |
---|
308 | </xs:documentation></xs:annotation> |
---|
309 | <xs:element name="main"><xs:complexType><xs:all> |
---|
310 | <!--[applying elem main]--> |
---|
311 | <xs:element name="var" type="ct__var"/> |
---|
312 | <!--[applying elem main]--> |
---|
313 | <xs:element name="ovar" type="ct__ovar"/> |
---|
314 | <!--[applying elem main]--> |
---|
315 | <xs:element name="groupItem" type="ct__groupItem"/> |
---|
316 | <!--[applying elem main]--> |
---|
317 | <xs:element name="revisedTabItem" type="ct__revisedTabItem"/> |
---|
318 | <!--[applying elem main]--> |
---|
319 | <xs:element name="requestVarGroup" type="ct__requestVarGroup"/> |
---|
320 | <!--[applying elem main]--> |
---|
321 | <xs:element name="requestLink" type="ct__requestLink"/> |
---|
322 | <!--[applying elem main]--> |
---|
323 | <xs:element name="requestItem" type="ct__requestItem"/> |
---|
324 | <!--[applying elem main]--> |
---|
325 | <xs:element name="remarks" type="ct__remarks"/> |
---|
326 | </xs:all></xs:complexType> |
---|
327 | <xs:unique name="uniqueIdentifierConstraint"><xs:annotation><xs:appinfo>W3Schools Note</xs:appinfo><xs:documentation xml:lang="en"> |
---|
328 | The uniqueIdentifierConstraint imposes the condition that the uuid attribute on "item" elements should have a unique value. |
---|
329 | </xs:documentation></xs:annotation> |
---|
330 | <xs:selector xpath=".//item"/><xs:field xpath="@uuid"/></xs:unique> |
---|
331 | </xs:element> |
---|
332 | </xs:schema> |
---|