-
Notifications
You must be signed in to change notification settings - Fork 21
/
cwmp-devicetype-1-0.xsd
579 lines (569 loc) · 23.8 KB
/
cwmp-devicetype-1-0.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
<?xml version="1.0" encoding="UTF-8"?>
<!--
TR-069 Device Type Schema (DT Schema) v1.0
Copyright (c) 2009-2017, Broadband Forum
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
conditions are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials
provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior written
permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The above license is used as a license under copyright only.
Please reference the Forum IPR Policy for patent licensing terms
<https://www.broadband-forum.org/ipr-policy>.
Any moral rights which are necessary to exercise under the above
license grant are also deemed granted under this license.
Summary:
TR-069 Device Type Schema (DT Schema). DT Instances describe individual
devices' support for TR-069 data models.
Version History:
September 2009: cwmp-devicetype-1-0.xsd, corresponds to TR-106 Amendment 3
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="urn:broadband-forum-org:cwmp:devicetype-1-0" xmlns:dm="urn:broadband-forum-org:cwmp:datamodel-1-1" xmlns:dtf="urn:broadband-forum-org:cwmp:devicetype-features" targetNamespace="urn:broadband-forum-org:cwmp:devicetype-1-0" elementFormDefault="unqualified" attributeFormDefault="unqualified">
<xs:import namespace="urn:broadband-forum-org:cwmp:datamodel-1-1" schemaLocation="cwmp-datamodel-1-1.xsd"/>
<xs:import namespace="urn:broadband-forum-org:cwmp:devicetype-features" schemaLocation="cwmp-devicetype-features.xsd"/>
<!-- Simple types -->
<xs:simpleType name="ActiveNotify">
<xs:annotation>
<xs:documentation>Parameter active notify support (based on dm:activeNotify).</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:token">
<xs:enumeration value="normal"/>
<xs:enumeration value="willDeny"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ObjectAccess">
<xs:annotation>
<xs:documentation>Object access (based on dm:ProfileObjectAccess).</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:token">
<xs:enumeration value="readOnly"/>
<xs:enumeration value="create"/>
<xs:enumeration value="delete"/>
<xs:enumeration value="createDelete"/>
</xs:restriction>
</xs:simpleType>
<!-- Model groups -->
<xs:group name="AllBuiltinDataTypes">
<xs:annotation>
<xs:documentation>All built-in data types.</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element name="base64">
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="size" type="tns:SizeFacet"/>
</xs:choice>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="boolean">
<xs:complexType>
<xs:sequence>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="dateTime">
<xs:complexType>
<xs:sequence>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="hexBinary">
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="size" type="tns:SizeFacet"/>
</xs:choice>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="int">
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="instanceRef" type="tns:InstanceRefFacet"/>
<xs:element name="range" type="tns:RangeFacet"/>
<xs:element name="units" type="tns:UnitsFacet"/>
</xs:choice>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="long">
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="range" type="tns:RangeFacet"/>
<xs:element name="units" type="tns:UnitsFacet"/>
</xs:choice>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="string">
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="size" type="tns:SizeFacet"/>
<xs:element name="pathRef" type="tns:PathRefFacet"/>
<xs:element name="enumeration" type="tns:EnumerationFacet"/>
<xs:element name="enumerationRef" type="tns:EnumerationRefFacet"/>
<xs:element name="pattern" type="tns:PatternFacet"/>
</xs:choice>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:unique name="stringEnumerationValue">
<xs:selector xpath="enumeration"/>
<xs:field xpath="@value"/>
</xs:unique>
<xs:unique name="stringPatternValue">
<xs:selector xpath="pattern"/>
<xs:field xpath="@value"/>
</xs:unique>
</xs:element>
<xs:element name="unsignedInt">
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="instanceRef" type="tns:InstanceRefFacet"/>
<xs:element name="range" type="tns:RangeFacet"/>
<xs:element name="units" type="tns:UnitsFacet"/>
</xs:choice>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
<xs:element name="unsignedLong">
<xs:complexType>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="range" type="tns:RangeFacet"/>
<xs:element name="units" type="tns:UnitsFacet"/>
</xs:choice>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:group>
<xs:group name="AllFacets">
<xs:annotation>
<xs:documentation>All facets.</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element name="size" type="tns:SizeFacet"/>
<xs:element name="instanceRef" type="tns:InstanceRefFacet"/>
<xs:element name="pathRef" type="tns:PathRefFacet"/>
<xs:element name="range" type="tns:RangeFacet"/>
<xs:element name="enumeration" type="tns:EnumerationFacet"/>
<xs:element name="enumerationRef" type="tns:EnumerationRefFacet"/>
<xs:element name="pattern" type="tns:PatternFacet"/>
<xs:element name="units" type="tns:UnitsFacet"/>
</xs:choice>
</xs:group>
<!-- Complex types -->
<xs:complexType name="Annotation">
<xs:annotation>
<xs:documentation>Annotation.</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:anyAttribute namespace="##other"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="BaseAccessFacet" abstract="true">
<xs:annotation>
<xs:documentation>Base facet (access attribute).</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:BaseStatusFacet">
<xs:attribute name="access" type="dm:ReadWriteAccess" default="readWrite"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="BaseStatusFacet" abstract="true">
<xs:annotation>
<xs:documentation>Base facet (no attributes).</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="annotation" type="tns:Annotation" minOccurs="0"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:complexType name="DefaultFacet">
<xs:annotation>
<xs:documentation>Default facet.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:BaseStatusFacet">
<xs:attribute name="type" type="dm:DefaultType" use="required"/>
<xs:attribute name="value" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Value MUST be valid for the data type.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="EnumerationFacet">
<xs:annotation>
<xs:documentation>Enumeration facet.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:BaseAccessFacet">
<xs:attribute name="value" type="xs:string" use="required"/>
<xs:attribute name="code" type="xs:integer"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="EnumerationRefFacet">
<xs:annotation>
<xs:documentation>Enumeration reference facet.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:BaseStatusFacet"/>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="Import">
<xs:annotation>
<xs:documentation>Import data types and models (Root and Service Objects) from DM Instances. All such items MUST be imported (this is checked by schema validation).</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="dataType">
<xs:complexType>
<xs:attribute name="name" type="dm:DataTypeName" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="model">
<xs:complexType>
<xs:attribute name="name" type="dm:ModelName" use="required"/>
</xs:complexType>
</xs:element>
</xs:choice>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="file" type="xs:anyURI">
<xs:annotation>
<xs:documentation>If specified, MUST be used to locate the DM Instance (B.2.1).</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="spec" type="xs:anyURI">
<xs:annotation>
<xs:documentation>If file is specified, this MAY be specified, in which case processing tools MUST regard a mismatch between this and the external document's spec attribute as an error.
If file is not specified, this MUST be specified and be used to locate the DM Instance (B.2.1).</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:complexType name="InstanceRefFacet">
<xs:annotation>
<xs:documentation>Instance number reference facet.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:BaseStatusFacet">
<xs:attribute name="targetParent" type="dm:ObjectReference" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="ListFacet">
<xs:annotation>
<xs:documentation>List facet.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:BaseStatusFacet">
<xs:sequence>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="size" type="tns:SizeFacet">
<xs:annotation>
<xs:documentation>This specifies the size of the TR-069 list-valued parameter, not of the individual list items.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="minItems" type="xs:nonNegativeInteger" default="0"/>
<xs:attribute name="maxItems" type="dm:MaxEntries" default="unbounded"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="Model">
<xs:annotation>
<xs:documentation>Model (Root and Service Object) support details.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="annotation" type="tns:Annotation" minOccurs="0"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="parameter" type="tns:ModelParameter"/>
<xs:element name="object" type="tns:ModelObject">
<xs:unique name="objectParameterName">
<xs:selector xpath="parameter"/>
<xs:field xpath="@ref"/>
</xs:unique>
</xs:element>
</xs:choice>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="ref" type="dm:ModelName" use="required"/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:complexType name="ModelObject">
<xs:annotation>
<xs:documentation>Object support details</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="annotation" type="tns:Annotation" minOccurs="0"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="parameter" type="tns:ModelParameter"/>
</xs:choice>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="ref" type="dm:ObjectName" use="required"/>
<xs:attribute name="access" type="tns:ObjectAccess" use="required"/>
<xs:attribute name="minEntries" type="xs:nonNegativeInteger" use="required">
<xs:annotation>
<xs:documentation>minEntries MUST be greater than or equal to minEntries(DM), and less than or equal to maxEntries (all values are regarded as being less than "unbounded").</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="maxEntries" type="dm:MaxEntries" use="required">
<xs:annotation>
<xs:documentation>maxEntries MUST be less than or equal to maxEntries(DM) (all values are regarded as being less than "unbounded").</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:complexType name="ModelParameter">
<xs:annotation>
<xs:documentation>Parameter support details.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="annotation" type="tns:Annotation" minOccurs="0"/>
<xs:element name="syntax" type="tns:Syntax" minOccurs="0"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="ref" type="dm:ParameterName" use="required"/>
<xs:attribute name="access" type="dm:ReadWriteAccess" use="required"/>
<xs:attribute name="activeNotify" type="tns:ActiveNotify" default="normal"/>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:complexType name="PathRefFacet">
<xs:annotation>
<xs:documentation>Path name reference facet.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:BaseStatusFacet">
<xs:attribute name="targetParent" type="dm:ObjectReferencePatterns" default=""/>
<xs:attribute name="targetType" type="dm:TargetType" default="any"/>
<xs:attribute name="targetDataType" type="dm:AnyTypeName" default="any"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="PatternFacet">
<xs:annotation>
<xs:documentation>Pattern facet (pattern syntax is as in XML Schema).</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:BaseAccessFacet">
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="RangeFacet">
<xs:annotation>
<xs:documentation>Range facet.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:BaseAccessFacet">
<xs:attribute name="minInclusive" type="xs:integer"/>
<xs:attribute name="maxInclusive" type="xs:integer"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="SizeFacet">
<xs:annotation>
<xs:documentation>Size facet.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:BaseAccessFacet">
<xs:attribute name="minLength" type="xs:nonNegativeInteger" default="0"/>
<xs:attribute name="maxLength" type="xs:nonNegativeInteger" default="16"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="DataTypeReference">
<xs:annotation>
<xs:documentation>Parameter data type anonymous restriction / extension.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:group ref="tns:AllFacets" minOccurs="0" maxOccurs="unbounded"/>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="base" type="dm:DataTypeName">
<xs:annotation>
<xs:documentation>If specified, content MUST NOT be empty.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:complexType name="Syntax">
<xs:annotation>
<xs:documentation>Parameter syntax support details.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="list" type="tns:ListFacet" minOccurs="0"/>
<xs:choice>
<xs:group ref="tns:AllBuiltinDataTypes">
<xs:annotation>
<xs:documentation>Direct use of built-in data type, possibly modified via use of facets.</xs:documentation>
</xs:annotation>
</xs:group>
<xs:element name="dataType" type="tns:DataTypeReference">
<xs:annotation>
<xs:documentation>Use of named data type, possibly modified via use of facets.</xs:documentation>
</xs:annotation>
<xs:unique name="dtRefEnumerationValue">
<xs:selector xpath="enumeration"/>
<xs:field xpath="@value"/>
</xs:unique>
<xs:unique name="dtRefPatternValue">
<xs:selector xpath="pattern"/>
<xs:field xpath="@value"/>
</xs:unique>
</xs:element>
</xs:choice>
<xs:element name="default" type="tns:DefaultFacet" minOccurs="0"/>
</xs:sequence>
<xs:anyAttribute namespace="##other"/>
</xs:complexType>
<xs:complexType name="ToplevelFeature">
<xs:annotation>
<xs:documentation>Top-level feature.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="annotation" type="tns:Annotation" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="name" type="dtf:FeatureName" use="required"/>
</xs:complexType>
<xs:complexType name="UnitsFacet">
<xs:annotation>
<xs:documentation>Units facet.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="tns:BaseStatusFacet">
<xs:attribute name="value" type="dm:UnitsString" use="required"/>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<!-- Elements -->
<xs:element name="document">
<xs:annotation>
<xs:documentation>CWMP Device Type XML Schema (DT Schema) instance documents can contain the following:
* Imports (from DM Schema instance documents) of Root or Service Object definitions
* Declarations of which features of imported Root or Service Objects are supported</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="annotation" type="tns:Annotation" minOccurs="0">
<xs:annotation>
<xs:documentation>Top-level annotation.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="import" type="tns:Import" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Imported models (Root and Service Objects).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="bibliography" type="dm:Bibliography" minOccurs="0">
<xs:annotation>
<xs:documentation>Bibliographic references.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="feature" type="tns:ToplevelFeature" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Top-level features.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="model" type="tns:Model" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Details of support for model (Root and Service Object).</xs:documentation>
</xs:annotation>
<xs:unique name="modelParameterName">
<xs:selector xpath="parameter"/>
<xs:field xpath="@ref"/>
</xs:unique>
<xs:unique name="modelObjectName">
<xs:selector xpath="object"/>
<xs:field xpath="@ref"/>
</xs:unique>
</xs:element>
</xs:sequence>
<xs:attribute name="deviceType" use="required">
<xs:annotation>
<xs:documentation>URI indicating the device type associated with this DT Instance.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:anyURI">
<xs:pattern value=".+"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:unique name="dataTypeName">
<xs:selector xpath="import/dataType"/>
<xs:field xpath="@name"/>
</xs:unique>
<xs:keyref name="dataTypeBase" refer="tns:dataTypeName">
<xs:selector xpath=".//parameter/syntax/dataType"/>
<xs:field xpath="@base"/>
</xs:keyref>
<xs:unique name="modelName">
<xs:selector xpath="import/model"/>
<xs:field xpath="@name"/>
</xs:unique>
<xs:unique name="modelRef">
<xs:selector xpath="model"/>
<xs:field xpath="@ref"/>
</xs:unique>
<xs:keyref name="modelDef" refer="tns:modelName">
<xs:selector xpath="model"/>
<xs:field xpath="@ref"/>
</xs:keyref>
</xs:element>
</xs:schema>