-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdcc.xsd
963 lines (889 loc) · 44.9 KB
/
dcc.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
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema version="3.2.1" xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:dcc="https://ptb.de/dcc"
xmlns:si="https://ptb.de/si"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
targetNamespace="https://ptb.de/dcc"
elementFormDefault="qualified">
<xs:import
namespace="https://ptb.de/si"
schemaLocation="https://ptb.de/si/v2.1.0/SI_Format.xsd"/>
<xs:import
namespace="http://www.w3.org/2000/09/xmldsig#"
schemaLocation="https://www.ptb.de/dcc/d-sig/xmldsig-core-schema.xsd"/>
<xs:annotation>
<xs:documentation>
DCC - Digital Calibration Certificate
Copyright (c) 2019 - 2023 Physikalisch-Technische Bundesanstalt
This XML Scheme Definition (XSD) is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, version 3 of the License.
This XSD is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
The development of minimum requirements for a digital calibration certificate (DCC) is partially funded and
supported by the joint research project EMPIR 17IND02 (title: SmartCom).
This project (17IND02) has received funding from the EMPIR programme co-financed by the Participating States
and from the European Union's Horizon 2020 research and innovation programme.
The further development of the digital calibration certificate (DCC) is partly supported by the lighthouse
project GEMIMEG-II (GEMIMEG 01 MT20001E) funded by the German Federal Ministry for Economic Affairs and
Energy (BMWi) and the project "International Standard Accident Number" (ISAN) funded by the Niedersächsiches
Vorab initiative of the Volkswagen Foundation (VolkswagenStiftung).
Documentation: https://ptb.de/dcc/v3.2.1/
</xs:documentation>
</xs:annotation>
<xs:element name="digitalCalibrationCertificate" type="dcc:digitalCalibrationCertificateType"/>
<xs:complexType name="digitalCalibrationCertificateType">
<xs:annotation>
<xs:documentation>
The root element that contains the four rings of the DCC.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="administrativeData" type="dcc:administrativeDataType"/>
<xs:element name="measurementResults" type="dcc:measurementResultListType"/>
<xs:element name="comment" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:any namespace="##any" processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="document" type="dcc:byteDataType" minOccurs="0"/>
<xs:element ref="ds:Signature" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="schemaVersion" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern value="3\.2\.1"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
<xs:complexType name="administrativeDataType">
<xs:annotation>
<xs:documentation>
The element administrativeData contains all essential administrative information about the calibration.
The entries in this area are basically the same and regulated in all DCCs.
</xs:documentation>
</xs:annotation>
<xs:all>
<xs:element name="dccSoftware" type="dcc:softwareListType"/>
<xs:element name="refTypeDefinitions" type="dcc:refTypeDefinitionListType" minOccurs="0"/>
<xs:element name="coreData" type="dcc:coreDataType"/>
<xs:element name="items" type="dcc:itemListType"/>
<xs:element name="calibrationLaboratory" type="dcc:calibrationLaboratoryType"/>
<xs:element name="respPersons" type="dcc:respPersonListType"/>
<xs:element name="customer" type="dcc:contactType"/>
<xs:element name="statements" type="dcc:statementListType" minOccurs="0"/>
</xs:all>
</xs:complexType>
<xs:complexType name="softwareListType">
<xs:annotation>
<xs:documentation>
A list of software elements.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="software" type="dcc:softwareType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="softwareType">
<xs:annotation>
<xs:documentation>
Information about a software including its name, version and a description.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType"/>
<xs:element name="release" type="dcc:notEmptyStringType"/>
<xs:element name="type" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="application" />
<xs:enumeration value="bios" />
<xs:enumeration value="driver" />
<xs:enumeration value="editor" />
<xs:enumeration value="firmware" />
<xs:enumeration value="library" />
<xs:enumeration value="os" />
<xs:enumeration value="other" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="refTypeDefinitionListType">
<xs:annotation>
<xs:documentation>
This type allows the give information about the used refTypes in a DCC.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="refTypeDefinition" type="dcc:refTypeDefinitionType"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="refTypeDefinitionType">
<xs:annotation>
<xs:documentation>
This type contains the information about the wording of the refTypes used in a DCC.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="namespace" type="dcc:notEmptyStringType"/>
<xs:element name="link" type="dcc:notEmptyStringType"/>
<xs:element name="release" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="value" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="procedure" type="dcc:notEmptyStringType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="measuringEquipmentListType">
<xs:annotation>
<xs:documentation>
List of measuring equipment and instruments
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType" minOccurs="0"/>
<xs:element name="equipmentClass" type="dcc:equipmentClassType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="owner" type="dcc:contactType" minOccurs="0"/>
<xs:element name="identifications" type="dcc:identificationListType" minOccurs="0"/>
<xs:element name="measuringEquipment" type="dcc:measuringEquipmentType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="measuringEquipmentType">
<xs:annotation>
<xs:documentation>
Information about a measuring equipment or instrument used in the calibration
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType"/>
<xs:element name="equipmentClass" type="dcc:equipmentClassType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="certificate" type="dcc:hashType" minOccurs="0"/>
<xs:element name="manufacturer" type="dcc:contactNotStrictType" minOccurs="0"/>
<xs:element name="model" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="identifications" type="dcc:identificationListType" minOccurs="0"/>
<xs:element name="measuringEquipmentQuantities" type="dcc:measuringEquipmentQuantityListType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="measuringEquipmentQuantityListType">
<xs:annotation>
<xs:documentation>
This type contains a list of measurable value(s) which belongs to the measurement equipment.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="measuringEquipmentQuantity" type="dcc:primitiveQuantityType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="primitiveQuantityType">
<xs:annotation>
<xs:documentation>
This type contains measurable value(s).
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType" minOccurs="0"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:choice>
<xs:element name="noQuantity" type="dcc:richContentType"/>
<xs:element name="charsXMLList" type="dcc:charsXMLListType"/>
<xs:element ref="si:real"/>
<xs:element ref="si:hybrid"/>
<xs:element ref="si:complex"/>
<xs:element ref="si:constant"/>
<xs:element ref="si:realListXMLList"/>
</xs:choice>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="coreDataType">
<xs:annotation>
<xs:documentation>
Important metadata for the DCC containing the global unique identifier and other identifications.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="countryCodeISO3166_1" type="dcc:stringISO3166Type"/>
<xs:element name="usedLangCodeISO639_1" type="dcc:stringISO639Type" maxOccurs="unbounded"/>
<xs:element name="mandatoryLangCodeISO639_1" type="dcc:stringISO639Type" maxOccurs="unbounded"/>
<xs:element name="uniqueIdentifier" type="dcc:notEmptyStringType"/>
<xs:element name="identifications" type="dcc:identificationListType" minOccurs="0"/>
<xs:element name="receiptDate" type="xs:date" minOccurs="0"/>
<xs:element name="beginPerformanceDate" type="xs:date"/>
<xs:element name="endPerformanceDate" type="xs:date"/>
<xs:element name="performanceLocation" type="dcc:performanceLocationType"/>
<xs:element name="issueDate" type="xs:date" minOccurs="0"/>
<xs:element name="reportAmendedSubstituted" type="dcc:reportAmendedSubstitutedType" minOccurs="0"/>
<xs:element name="previousReport" type="dcc:hashType" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="reportAmendedSubstitutedType">
<xs:annotation>
<xs:documentation>
This type contains information about the replaced DCC and the reason for the replacement.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="typeOfChange">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="amended"/>
<xs:enumeration value="substituted"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="replacedUniqueIdentifier" type="dcc:notEmptyStringType"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:simpleType name="notEmptyStringType">
<xs:restriction base="xs:string">
<xs:pattern value="[^\s]+(\s+[^\s]+)*"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="equipmentClassType">
<xs:annotation>
<xs:documentation>
Clear name(s) of the item(s) and identifier(s).
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="reference" type="dcc:notEmptyStringType"/>
<xs:element name="classID" type="dcc:notEmptyStringType"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="itemListType">
<xs:annotation>
<xs:documentation>
This element is a set of calibrated items.
Contains one or more item elements.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType" minOccurs="0"/>
<xs:element name="equipmentClass" type="dcc:equipmentClassType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="owner" type="dcc:contactType" minOccurs="0"/>
<xs:element name="manufacturer" type="dcc:contactNotStrictType" minOccurs="0" />
<xs:element name="identifications" type="dcc:identificationListType" minOccurs="0"/>
<xs:element name="item" type="dcc:itemType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="itemType">
<xs:annotation>
<xs:documentation>
An item that is calibrated in this DCC.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType"/>
<xs:element name="equipmentClass" type="dcc:equipmentClassType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="installedSoftwares" type="dcc:softwareListType" minOccurs="0" />
<xs:element name="manufacturer" type="dcc:contactNotStrictType" minOccurs="0" />
<xs:element name="model" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="identifications" type="dcc:identificationListType"/>
<xs:element name="itemQuantities" type="dcc:itemQuantityListType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="itemQuantityListType">
<xs:annotation>
<xs:documentation>
List of value(s) which belongs to the to be calibrated item.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="itemQuantity" type="dcc:primitiveQuantityType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="identificationListType">
<xs:annotation>
<xs:documentation>
List of additional identifications.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="identification" type="dcc:identificationType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="identificationType">
<xs:annotation>
<xs:documentation>
An additional identification (eg. reference no., serial number, etc.).
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="issuer">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="manufacturer"/>
<xs:enumeration value="calibrationLaboratory"/>
<xs:enumeration value="customer"/>
<xs:enumeration value="owner"/>
<xs:enumeration value="other"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="value" type="dcc:notEmptyStringType"/>
<xs:element name="name" type="dcc:textType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="performanceLocationType">
<xs:annotation>
<xs:documentation>
This type contains information about the location where the the calibration is performed.
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="dcc:stringPerformanceLocationType">
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:simpleType name="stringPerformanceLocationType">
<xs:restriction base="xs:string">
<xs:enumeration value="laboratory"/>
<xs:enumeration value="customer"/>
<xs:enumeration value="laboratoryBranch"/>
<xs:enumeration value="customerBranch"/>
<xs:enumeration value="other"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="calibrationLaboratoryType">
<xs:annotation>
<xs:documentation>
Information about the calibration laboratory.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="calibrationLaboratoryCode" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="contact" type="dcc:contactType"/>
<xs:element name="cryptElectronicSeal" type="xs:boolean" minOccurs="0"/>
<xs:element name="cryptElectronicSignature" type="xs:boolean" minOccurs="0"/>
<xs:element name="cryptElectronicTimeStamp" type="xs:boolean" minOccurs="0"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="respPersonListType">
<xs:annotation>
<xs:documentation>
List of responsible persons for a DCC.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="respPerson" type="dcc:respPersonType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="respPersonType">
<xs:annotation>
<xs:documentation>
A person responsible for a DCC.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="person" type="dcc:contactNotStrictType"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="role" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="mainSigner" type="xs:boolean" minOccurs="0"/>
<xs:element name="cryptElectronicSeal" type="xs:boolean" minOccurs="0"/>
<xs:element name="cryptElectronicSignature" type="xs:boolean" minOccurs="0"/>
<xs:element name="cryptElectronicTimeStamp" type="xs:boolean" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="statementListType">
<xs:annotation>
<xs:documentation>
List of statements attached to a DCC.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="statement" type="dcc:statementMetaDataType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="measurementResultListType">
<xs:annotation>
<xs:documentation>
List of measurement results that are part of a DCC.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="measurementResult" type="dcc:measurementResultType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="measurementResultType">
<xs:annotation>
<xs:documentation>
A measurement results with the methods, software and equipments used for the calibration.
Also contains influence conditions and a list of the actual results.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="usedMethods" type="dcc:usedMethodListType" minOccurs="0"/>
<xs:element name="usedSoftware" type="dcc:softwareListType" minOccurs="0"/>
<xs:element name="measuringEquipments" type="dcc:measuringEquipmentListType" minOccurs="0"/>
<xs:element name="influenceConditions" type="dcc:influenceConditionListType" minOccurs="0"/>
<xs:element name="results" type="dcc:resultListType"/>
<xs:element name="measurementMetaData" type="dcc:measurementMetaDataListType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="usedMethodListType">
<xs:annotation>
<xs:documentation>
List of the methods used in the calibration.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="usedMethod" type="dcc:usedMethodType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="usedMethodType">
<xs:annotation>
<xs:documentation>
A method used in the calibration.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="norm" type="dcc:notEmptyStringType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="reference" type="dcc:notEmptyStringType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="influenceConditionListType">
<xs:annotation>
<xs:documentation>
List of conditions that influence the measurements.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="influenceCondition" type="dcc:conditionType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="conditionType">
<xs:annotation>
<xs:documentation>
Condition (e.g. environmental) under which the calibrations were performed which have an influence on
the measurement results.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="status" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="beforeAdjustment"/>
<xs:enumeration value="afterAdjustment"/>
<xs:enumeration value="beforeRepair"/>
<xs:enumeration value="afterRepair"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="certificate" type="dcc:hashType" minOccurs="0"/>
<xs:element name="data" type="dcc:dataType"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="resultListType">
<xs:annotation>
<xs:documentation>
List of results of the calibration.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="result" type="dcc:resultType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="resultType">
<xs:annotation>
<xs:documentation>
The actual result of the calibration.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="data" type="dcc:dataType"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="dataType">
<xs:choice maxOccurs="unbounded">
<xs:element name="text" type="dcc:richContentType"/>
<xs:element name="formula" type="dcc:formulaType"/>
<xs:element name="byteData" type="dcc:byteDataType"/>
<xs:element name="xml" type="dcc:xmlType"/>
<xs:element name="quantity" type="dcc:quantityType"/>
<xs:element name="list" type="dcc:listType"/>
</xs:choice>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="quantityType">
<xs:annotation>
<xs:documentation>
A single measurement quantity that can contain a D-SI element or text.
Additionally used methods, used software, influence conditions that only affect this quantity can be
added.
Measurement metadata can also be added.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType" minOccurs="0"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:choice>
<xs:element name="noQuantity" type="dcc:richContentType"/>
<xs:element name="charsXMLList" type="dcc:charsXMLListType"/>
<xs:element ref="si:real"/>
<xs:element ref="si:list"/>
<xs:element ref="si:hybrid"/>
<xs:element ref="si:complex"/>
<xs:element ref="si:constant"/>
<xs:element ref="si:realListXMLList"/>
</xs:choice>
<xs:element name="relativeUncertainty" type="dcc:relativeUncertaintyType" minOccurs="0" />
<xs:element name="usedMethods" type="dcc:usedMethodListType" minOccurs="0"/>
<xs:element name="usedSoftware" type="dcc:softwareListType" minOccurs="0"/>
<xs:element name="measuringEquipments" type="dcc:measuringEquipmentListType" minOccurs="0"/>
<xs:element name="influenceConditions" type="dcc:influenceConditionListType" minOccurs="0"/>
<xs:element name="measurementMetaData" type="dcc:measurementMetaDataListType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:simpleType name="charsXMLListType">
<xs:annotation>
<xs:documentation xml:lang="en">
Type providing listing of strings (xs:string)
with separation by blank spaces.
</xs:documentation>
</xs:annotation>
<xs:list itemType="xs:string"/>
</xs:simpleType >
<xs:complexType name="relativeUncertaintyType">
<xs:choice>
<xs:element name="relativeUncertaintyXmlList" type="si:realListXMLListType" />
<xs:element name="relativeUncertaintySingle" type="si:realQuantityType" />
</xs:choice>
</xs:complexType>
<xs:complexType name="listType">
<xs:annotation>
<xs:documentation>
The 'list' element allows to define a collection of measurement results
which are subject to structures with integrity. Basic structures are
vector quantities. A recursive usage of 'list' allows the creation of
matrix and tensor structures as well as structures of higher dimension. The 'list'
may also be used to give measurement results in combination with some
ambient conditions at the measurement.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType" minOccurs="0"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:choice>
<xs:element name="dateTime" type="xs:dateTime" minOccurs="0"/>
<xs:element name="dateTimeXMLList" type="dcc:dateTimeXMLListType" minOccurs="0"/>
</xs:choice>
<xs:choice maxOccurs="unbounded">
<xs:element name="list" type="dcc:listType"/>
<xs:element name="quantity" type="dcc:quantityType"/>
</xs:choice>
<xs:element name="usedMethods" type="dcc:usedMethodListType" minOccurs="0"/>
<xs:element name="usedSoftware" type="dcc:softwareListType" minOccurs="0"/>
<xs:element name="measuringEquipments" type="dcc:measuringEquipmentListType" minOccurs="0"/>
<xs:element name="influenceConditions" type="dcc:influenceConditionListType" minOccurs="0"/>
<xs:element name="measurementMetaData" type="dcc:measurementMetaDataListType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:simpleType name="dateTimeXMLListType">
<xs:list itemType="xs:dateTime" />
</xs:simpleType>
<xs:complexType name="measurementMetaDataListType">
<xs:annotation>
<xs:documentation>
A list of additional metadata elements.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="metaData" type="dcc:statementMetaDataType" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="statementMetaDataType">
<xs:sequence>
<xs:element name="name" type="dcc:textType" minOccurs="0"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="countryCodeISO3166_1" type="dcc:stringISO3166Type" minOccurs="0"
maxOccurs="unbounded"/>
<xs:element name="convention" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="traceable" type="xs:boolean" minOccurs="0"/>
<xs:element name="norm" type="dcc:notEmptyStringType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="reference" type="dcc:notEmptyStringType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="declaration" type="dcc:richContentType" minOccurs="0"/>
<xs:choice minOccurs="0">
<xs:element name="valid" type="xs:boolean"/>
<xs:element name="validXMLList" type="dcc:booleanXMLListType"/>
</xs:choice>
<xs:element name="date" type="xs:date" minOccurs="0"/>
<xs:element name="period" type="xs:duration" minOccurs="0"/>
<xs:element name="respAuthority" type="dcc:contactType" minOccurs="0"/>
<xs:choice minOccurs="0">
<xs:element name="conformity" type="dcc:stringConformityStatementStatusType"/>
<xs:element name="conformityXMLList" type="dcc:stringConformityStatementStatusXMLListType"/>
</xs:choice>
<xs:element name="data" type="dcc:dataType" minOccurs="0"/>
<xs:element name="nonSIDefinition" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="nonSIUnit" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="location" type="dcc:locationType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:simpleType name="booleanXMLListType">
<xs:list itemType="xs:boolean"/>
</xs:simpleType>
<xs:simpleType name="stringConformityStatementStatusType">
<xs:restriction base="xs:string">
<xs:enumeration value="pass"/>
<xs:enumeration value="fail"/>
<xs:enumeration value="conditionalPass"/>
<xs:enumeration value="conditionalFail"/>
<xs:enumeration value="noPass"/>
<xs:enumeration value="noFail"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="stringConformityStatementStatusXMLListType">
<xs:list itemType="dcc:stringConformityStatementStatusType"/>
</xs:simpleType>
<xs:simpleType name="stringISO3166Type">
<xs:annotation>
<xs:documentation>
A string that is restricted to two upper case letters that contain a country code as defined in
ISO 3166-1.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[A-Z]{2}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="stringISO639Type">
<xs:annotation>
<xs:documentation>
A string that is restricted to two lower case letters that contain a language code as defined in
ISO 639.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[a-z]{2}"/>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="stringWithLangType">
<xs:annotation>
<xs:documentation>
A string element with an additional lang attribute for localization.
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="lang" type="dcc:stringISO639Type" use="optional"/>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="locationType">
<xs:choice maxOccurs="unbounded">
<xs:element name="city" type="dcc:notEmptyStringType"/>
<xs:element name="countryCode" type="dcc:stringISO3166Type"/>
<xs:element name="postCode" type="dcc:notEmptyStringType"/>
<xs:element name="postOfficeBox" type="dcc:notEmptyStringType"/>
<xs:element name="state" type="dcc:notEmptyStringType"/>
<xs:element name="street" type="dcc:notEmptyStringType"/>
<xs:element name="streetNo" type="dcc:notEmptyStringType"/>
<xs:element name="further" type="dcc:richContentType"/>
<xs:element name="positionCoordinates" type="dcc:positionCoordinatesType"/>
</xs:choice>
</xs:complexType>
<xs:complexType name="positionCoordinatesType">
<xs:sequence>
<xs:element name="positionCoordinateSystem" type="dcc:notEmptyStringType"/>
<xs:element name="reference" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="declaration" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="positionCoordinate1" type="si:realQuantityType"/>
<xs:element name="positionCoordinate2" type="si:realQuantityType"/>
<xs:element name="positionCoordinate3" type="si:realQuantityType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="contactType">
<xs:sequence>
<xs:element name="name" type="dcc:textType"/>
<xs:element name="eMail" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="phone" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="fax" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="location" type="dcc:locationType"/>
<xs:element name="descriptionData" type="dcc:byteDataType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
</xs:complexType>
<xs:complexType name="contactNotStrictType">
<xs:sequence>
<xs:element name="name" type="dcc:textType"/>
<xs:element name="eMail" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="phone" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="fax" type="dcc:notEmptyStringType" minOccurs="0"/>
<xs:element name="location" type="dcc:locationType" minOccurs="0"/>
<xs:element name="descriptionData" type="dcc:byteDataType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="hashType">
<xs:sequence>
<xs:element name="referral" type="dcc:textType"/>
<xs:element name="referralID" type="dcc:notEmptyStringType"/>
<xs:element name="procedure" type="dcc:notEmptyStringType"/>
<xs:element name="value" type="dcc:notEmptyStringType"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="inValidityRange" type="xs:boolean" minOccurs="0"/>
<xs:element name="traceable" type="xs:boolean" minOccurs="0"/>
<xs:element name="linkedReport" type="dcc:hashType" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="textType">
<xs:annotation>
<xs:documentation>
The textType defines the type for writing localized text in the DCC.
In this Type, the element content can be used many times with different language definition (attribute
lang).
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="content" type="dcc:stringWithLangType" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
</xs:complexType>
<xs:complexType name="richContentType">
<xs:annotation>
<xs:documentation>
Rich content Type can contain files and formulas beside the normal text content.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType" minOccurs="0"/>
<xs:sequence maxOccurs="unbounded">
<xs:element name="content" type="dcc:stringWithLangType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="file" type="dcc:byteDataType" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="formula" type="dcc:formulaType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="byteDataType">
<xs:annotation>
<xs:documentation>
The byteDataType defines a type which allows to add binary encoded files to the measurement result
section.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="name" type="dcc:textType" minOccurs="0"/>
<xs:element name="description" type="dcc:richContentType" minOccurs="0"/>
<xs:element name="fileName" type="dcc:notEmptyStringType"/>
<xs:element name="mimeType" type="dcc:notEmptyStringType"/>
<xs:element name="dataBase64" type="xs:base64Binary"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="formulaType">
<xs:annotation>
<xs:documentation>
This data block is used to add formulas and equations to the measurement result section of the DCC.
</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element name="latex" type="xs:string"/>
<xs:element name="mathml" type="dcc:xmlType"/>
</xs:choice>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:complexType name="xmlType">
<xs:annotation>
<xs:documentation>
This data block is used to add user or application specific XML content.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:any namespace="##other" minOccurs="0"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="optional"/>
<xs:attribute name="refId" type="xs:IDREFS" use="optional"/>
<xs:attribute name="refType" type="dcc:refTypesType" use="optional"/>
</xs:complexType>
<xs:simpleType name="refTypesType">
<xs:annotation>
<xs:documentation>
Allow multiple refTypes for one element as attribute.
</xs:documentation>
</xs:annotation>
<xs:restriction>
<xs:simpleType>
<xs:list itemType="xs:string"/>
</xs:simpleType>
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>