/
logicalproduct.xsd
2529 lines (2515 loc) · 163 KB
/
logicalproduct.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
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2014 DDI Alliance, DDI 3.2 release, 2014-02-05
This file is part of DDI 3.2 XML Schema.
DDI 3.2 XML Schema 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, either version 3 of the License, or (at your
option) any later version.
DDI 3.2 XML Schema 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.
You should have received a copy of the GNU Lesser General Public License along
with DDI 3 dev XML Schema. If not, see <http://www.gnu.org/licenses/>.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="ddi:logicalproduct:3_2" xmlns:r="ddi:reusable:3_2" targetNamespace="ddi:logicalproduct:3_2" elementFormDefault="qualified">
<xs:import namespace="ddi:reusable:3_2" schemaLocation="reusable.xsd"/>
<!-- BASE LOGICAL PRODUCT -->
<xs:element name="BaseLogicalProduct" type="BaseLogicalProductType" abstract="true">
<xs:annotation>
<xs:documentation>This is an abstract structure which serves as a substitution base for current and future LogicalProduct definitions relating to specific data types. Used as an extension base for all other LogicalProducts within its substitution group, it ensures that all DDI LogicalProduct descriptions will contain a consistent means of linking a physical data file to its logical (intellectual) description via the LogicalRecord found in DataRelationship.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="BaseLogicalProductType" abstract="true">
<xs:annotation>
<xs:documentation>This is an abstract structure which serves as a substitution base for current and future LogicalProduct definitions relating to specific data types. Used as an extension base for all other LogicalProducts within its substitution group, it ensures that all DDI LogicalProduct descriptions will contain a consistent means of linking a physical data file to its logical (intellectual) description via the LogicalRecord found in DataRelationship. The extension base includes the standard name, label, and description, coverage information, a structure to define data relationships (identifies each logical record and the relationship(s) between them), as well as OtherMaterial related to its contents.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="r:MaintainableType">
<xs:sequence>
<xs:element ref="LogicalProductName" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A name for the LogicalProduct. May be expressed in multiple languages. Repeat the element to express names with different content, for example different names for different systems.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Label" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A display label for the LogicalProduct. May be expressed in multiple languages. Repeat for labels with different content, for example, labels with differing length limitations.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Description" minOccurs="0">
<xs:annotation>
<xs:documentation>A description of the content and purpose of the LogicalProduct. May be expressed in multiple languages and supports the use of structured content.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Coverage" minOccurs="0">
<xs:annotation>
<xs:documentation>The Coverage statement at this level may be used to restrict the coverage described in the StudyUnit module. For example if this specific logical product from a population and housing census only covers housing questions or only provides State and County level data these should be noted here. If there are no changes in the coverage from the coverage of the StudyUnit module, no entry is needed here.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="DataRelationship">
<xs:annotation>
<xs:documentation>Contains a written description of how the logical contents of the file relate to each other for programming purposes. For example, noting that there are household, family and person items where the household is identified by variable, the unique family by the concatenation of variable_H and variable_F, and the unique person within a household by the concatenation of variable_H and variable_P.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:DataRelationshipReference">
<xs:annotation>
<xs:documentation>References a written description of how the logical contents of the file relate to each other for programming purposes. For example, noting that there are household, family and person items where the household is identified by variable, the unique family by the concatenation of variable_H and variable_F, and the unique person within a household by the concatenation of variable_H and variable_P. TypeOfObject should be set to DataRelationship.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element ref="r:OtherMaterial" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Describes Other Materials that have a specific relation to the logical product. For example the printed data dictionary or printed output for the logical product.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="LogicalProductName" type="r:NameType">
<xs:annotation>
<xs:documentation>Name of the Logical Product using the DDI Name structure.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- LOGICAL PRODUCT -->
<xs:element name="LogicalProduct" type="LogicalProductType" substitutionGroup="BaseLogicalProduct">
<xs:annotation>
<xs:documentation>A module describing the logical (intellectual) contents of the quantitative data. It is a member of the substitution group BaseLogicalProduct and contains all of the common features of the BaseLogicalProduct as well as content specific to quantitative data.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="LogicalProductType">
<xs:annotation>
<xs:documentation>A module describing the logical (intellectual) contents of the quantitative data. It is a member of the substitution group BaseLogicalProduct and contains all of the common features of the BaseLogicalProduct as well as content specific to quantitative data. This is a member of the BaseLogicalProduct substitution group and in addition to the content inherited from the BaseLogicalProduct, contains CategorySchemes, CodeListSchemes, ManagedRepresentationSchemes, RepresentedVariableSchemes, VariableSchemes an NCubeSchemes both in-line an by reference.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="BaseLogicalProductType">
<xs:sequence>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element ref="CategoryScheme">
<xs:annotation>
<xs:documentation>Contains descriptions of particular categories used as question responses and in the logical product. Their relationships and code values are described in the code scheme.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:CategorySchemeReference">
<xs:annotation>
<xs:documentation>Reference to a previously defined category scheme either internal to or external to the XML instance.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element ref="CodeListScheme">
<xs:annotation>
<xs:documentation>Lists the code values used to represent categories for a variable or question. Also describes hierarchical relationships between categories used in the code scheme.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:CodeListSchemeReference">
<xs:annotation>
<xs:documentation>Reference to a previously defined code scheme either internal to or external to the DDI instance.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="r:ManagedRepresentationScheme">
<xs:annotation>
<xs:documentation>A scheme containing representations that are being managed as reusable sources for response domains and value representations.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:ManagedRepresentationSchemeReference">
<xs:annotation>
<xs:documentation>Inclusion of an existing ManagedRepresentationScheme by reference. TypeOfObject should be set to ManagedRepresentationScheme.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="RepresentedVariableScheme">
<xs:annotation>
<xs:documentation>A set of RepresentedVariables managed by an agency. RepresentedVariables are the core reusable parts of a Variable. RepresentedVariable maps to the GSIM Represented Variable. In addition to the standard name, label, and description, allows for the inclusion of an existing RepresentedVariableScheme by reference and RepresentedVariables either in-line or by reference. RepresentedVariables may be grouped for management purposes.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:RepresentedVariableSchemeReference">
<xs:annotation>
<xs:documentation>Inclusion of an existing RepresentedVariableScheme by reference. TypeOfObject should be set to ManagedRepresentationScheme.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element ref="VariableScheme">
<xs:annotation>
<xs:documentation>Contains a collection of variables and variable groups.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:VariableSchemeReference">
<xs:annotation>
<xs:documentation>A reference to a previously defined variable scheme either internal to or external to the DDI instance.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:choice maxOccurs="unbounded" minOccurs="0">
<xs:element ref="NCubeScheme">
<xs:annotation>
<xs:documentation>Contains a collection of NCubes and NCube groups.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:NCubeSchemeReference">
<xs:annotation>
<xs:documentation>A reference to a previously defined NCube scheme either internal to or external to the DDI instance.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<!-- CATEGORIES -->
<xs:complexType name="CategorySchemeType">
<xs:annotation>
<xs:documentation>A scheme containing a set of Categories managed by an agency. These are used to manage category definitions used as a domain for data element and basic content for a category representations. In addition to the name, label, and description of the scheme, the structure supports the inclusion of another CategoryScheme by reference, a set of Category descriptions either in-line or by reference, and the description of a CategoryGroup either in-line or by reference.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="r:MaintainableType">
<xs:sequence>
<xs:element ref="CategorySchemeName" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A name for the scheme. May be expressed in multiple languages. Repeat the element to express names with different content, for example different names for different systems.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Label" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A display label for the scheme. May be expressed in multiple languages. Repeat for labels with different content, for example, labels with differing length limitations.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Description" minOccurs="0">
<xs:annotation>
<xs:documentation>A description of the content and purpose of the scheme. May be expressed in multiple languages and supports the use of structured content.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:CategorySchemeReference" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Allows for inclusion by reference of other category schemes.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="Category">
<xs:annotation>
<xs:documentation>A description of a particular category or response. OECD Glossary of Statistical Terms: Generic term for items at any level within a classification, typically tabulation categories, sections, subsections, divisions, subdivisions, groups, subgroups, classes and subclasses.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:CategoryReference">
<xs:annotation>
<xs:documentation>Reference to a description of a particular category or response. OECD Glossary of Statistical Terms: Generic term for items at any level within a classification, typically tabulation categories, sections, subsections, divisions, subdivisions, groups, subgroups, classes and subclasses. TypeOfObject should be set to Category.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="CategoryGroup">
<xs:annotation>
<xs:documentation>Allows categories to be grouped with or without hierarchical structure.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="CategoryGroupReference">
<xs:annotation>
<xs:documentation>Inclusion of a CategoryGroup that allows categories to be grouped with or without hierarchical structure by reference. TypeOfObject should be set to Category.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="CategoryGroupReference" type="r:ReferenceType">
<xs:annotation>
<xs:documentation>Inclusion of a CategoryGroup that allows categories to be grouped with or without hierarchical structure by reference. TypeOfObject should be set to CategoryGroup.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CategorySchemeName" type="r:NameType">
<xs:annotation>
<xs:documentation>Name of the Category Scheme using the DDI Name structure.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="CategoryGroupType">
<xs:annotation>
<xs:documentation>Contains a group of Category descriptions, which may be ordered or hierarchical. In addition to the name, label, and description of the group, the structure allows for defining the group as a valid category value using a DefiningCategoryReference, and a listing of Categories and CategoryGroups in any order.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="r:VersionableType">
<xs:sequence>
<xs:element ref="TypeOfCategoryGroup" minOccurs="0">
<xs:annotation>
<xs:documentation>A brief textual identification of the group type. Supports the use of an external controlled vocabulary.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="CategoryGroupName" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A name for the group. May be expressed in multiple languages. Repeat the element to express names with different content, for example different names for different systems.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Label" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A display label for the category group. May be expressed in multiple languages. Repeat for labels with different content, for example, labels with differing length limitations.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Description" minOccurs="0">
<xs:annotation>
<xs:documentation>A description of the content and purpose of the CategoryGroup. May be expressed in multiple languages and supports the use of structured content.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="DefiningCategoryReference" minOccurs="0">
<xs:annotation>
<xs:documentation>A reference to a category that defines the group, thereby allowing the group to define the contents of that category by explicitly identifying its members.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:UniverseReference" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Reference to the universe statement describing the persons or other objects to which the contents of this group pertain.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:ConceptReference" minOccurs="0">
<xs:annotation>
<xs:documentation>Reference to the concept expressed by the objects in this group.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Subject" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>If subjects are listed for this group, it is strongly recommended that the subjects listed also be found in the TopicalCoverage element for the parent packaging element when this group is included directly or by reference in a module containing a coverage element. Use of subject at the group level allows for associating objects as a type of subject based group or to identify subject characteristics of a reusable group of objects.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Keyword" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>If keywords are listed for this group, it is strongly recommended that the keywords listed also be found in the TopicalCoverage element for the parent packaging element when this group is included directly or by reference in a module containing a coverage element. Use of keyword at the group level allows for associating objects as a type of keyword based group or to identify keyword characteristics of a reusable group of objects.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="r:CategoryReference">
<xs:annotation>
<xs:documentation>A category defined as a member of this group.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="CategoryGroupReference">
<xs:annotation>
<xs:documentation>A category group that is a member of this group (nesting structure).</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="isOrdered" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>If set to "true" indicates that the content of the group is ordered as it appears within the XML structure.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="DefiningCategoryReference" type="r:ReferenceType">
<xs:annotation>
<xs:documentation>Reference to an existing Category using the Reference structure. TypeOfObject should be set to Category.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TypeOfCategoryGroup" type="r:CodeValueType">
<xs:annotation>
<xs:documentation>A brief textual description of the type of group created to associate a number of Categories. Supports the use of an external controlled vocabulary.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CategoryGroupName" type="r:NameType">
<xs:annotation>
<xs:documentation>Name of the Category Group using the DDI Name structure.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="CategoryType">
<xs:annotation>
<xs:documentation>A description of a particular category or response. OECD Glossary of Statistical Terms: Generic term for items at any level within a classification, typically tabulation categories, sections, subsections, divisions, subdivisions, groups, subgroups, classes and subclasses. In addition to the standard name, label, and description, a category may contain a reference to a defining concept, provide information on how the category was generated (membership defined), and indicate if it is the description of a type of missing value.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="r:VersionableType">
<xs:sequence>
<xs:element ref="CategoryName" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A name for the category. May be expressed in multiple languages. Repeat the element to express names with different content, for example different names for different systems.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Label" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A display label for the category. May be expressed in multiple languages. Repeat for labels with different content, for example, labels with differing length limitations or of different types or applications.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Description" minOccurs="0">
<xs:annotation>
<xs:documentation>A description of the content and purpose of the category. May be expressed in multiple languages and supports the use of structured content. Note that comparison of categories is done using the content of description.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:ConceptReference" minOccurs="0">
<xs:annotation>
<xs:documentation>Reference to the defining concept.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="Generation" minOccurs="0">
<xs:annotation>
<xs:documentation>Describes how the category is derived or generated. A process for describing the determination of category membership.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="SubCategoryReference" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Reference to one or more categories for which the current category is a broader definition. Allows for a reference to the narrower category and the ability to define the relationship as a specialization or part.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="isMissing" type="xs:boolean" use="optional">
<xs:annotation>
<xs:documentation>If the category is describing a classification of "missing data" set the value of isMissing to "true".</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="CategoryName" type="r:NameType">
<xs:annotation>
<xs:documentation>Name of the Category using the DDI Name structure.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="SubCategoryReference" type="SubCategoryReferenceType">
<xs:annotation>
<xs:documentation>Reference to one or more categories for which the current category is a broader definition. Allows for a reference to the narrower category and the ability to define the relationship as a specialization or part. TypeOfObject should be set to Category.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="SubCategoryReferenceType">
<xs:annotation>
<xs:documentation>Reference to one or more categories for which the current category is a broader definition. Allows for a reference to the narrower category and the ability to define the relationship as a specialization or part. TypeOfObject should be set to Category.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="r:ReferenceType">
<xs:attribute name="typeOfSubCategory" type="SubCategoryType">
<xs:annotation>
<xs:documentation>Defines the sub-category in terms being generic or partitive in nature. For example, a radial tire is a type of tire (generic) while a tire is a part of a car (partitive). The value refers to the role of the SubCategory within the broader category .</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="SubCategoryType">
<xs:annotation>
<xs:documentation>Defines the sub-category in terms being generic or partitive in nature. For example, a radial tire is a type of tire (generic) while a tire is a part of a car (partitive). The value refers to the role of the SubCategory within the broader category .</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:NMTOKEN">
<xs:enumeration value="specialization">
<xs:annotation>
<xs:documentation>Defines the relationship of the sub-category as being generic in nature, i.e. that the sub-category is a "specialization" of the category which references it.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="isPartOf">
<xs:annotation>
<xs:documentation>Defines the relationship of the sub-category as being partitive in nature, i.e. that the sub-category is a "isPartOf" of the category which references it.</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<!-- CodeLists -->
<xs:element name="CodeListScheme" type="CodeListSchemeType">
<xs:annotation>
<xs:documentation>A scheme containing sets of CodeLists that are used by reference to define code representations used by value representations and response domains.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="CodeListSchemeType">
<xs:annotation>
<xs:documentation>A scheme containing sets of CodeLists that are used by reference to define code representations used by value representations and response domains. In addition to the standard name, label, description, the CodeListScheme may contain another CodeListScheme by reference, CodeLists either in-line or by reference, and CodeListGroups either in-line or by reference.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="r:MaintainableType">
<xs:sequence>
<xs:element ref="CodeListSchemeName" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A name for the CodeListScheme. May be expressed in multiple languages. Repeat the element to express names with different content, for example different names for different systems.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Label" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A display label for the CodeListScheme. May be expressed in multiple languages. Repeat for labels with different content, for example, labels with differing length limitations.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Description" minOccurs="0">
<xs:annotation>
<xs:documentation>A description of the content and purpose of the CodeListScheme. May be expressed in multiple languages and supports the use of structured content.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:CodeListSchemeReference" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Allows for the inclusion of another CodeListScheme by reference.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="CodeList">
<xs:annotation>
<xs:documentation>A structure used to associate a list of code values to specified categories. May be flat or hierarchical. A maintainable CodeList listed in the CodeListScheme in-line.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:CodeListReference">
<xs:annotation>
<xs:documentation>A reference to an existing CodeList to be added to this CodeListScheme by reference.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="CodeListGroup">
<xs:annotation>
<xs:documentation>In-line description of a group of CodeLists for conceptual, administrative or other purposes.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="CodeListGroupReference">
<xs:annotation>
<xs:documentation>The inclusion of an existing CodeListGroup by reference.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="CodeListSchemeName" type="r:NameType">
<xs:annotation>
<xs:documentation>Name of the Code List Scheme using the DDI Name structure.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="CodeListGroupReference" type="r:ReferenceType">
<xs:annotation>
<xs:documentation>Reference to an existing CodeListGroup using the Reference structure. TypeOfObject should be set to CodeListGroup.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="CodeListType">
<xs:annotation>
<xs:documentation>A structure used to associate a list of code values to specified categories. May be flat or hierarchical. This is a maintainable object. In addition to the standard name, label, and description the CodeList specifies a recommended data type, the hierarchical nature of the CodeList, level descriptions, individual code values and associated category, and whether the CodeList contents are used to represent system specific missing values. May include another CodeList by reference. If including other CodeLists make sure there are no code conflicts in the overall content. A code value must be unique within the CodeList. May also include a reference to a default CategoryScheme.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="r:MaintainableType">
<xs:sequence>
<xs:element ref="CodeListName" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A name for the CodeList. May be expressed in multiple languages. Repeat the element to express names with different content, for example different names for different systems.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Label" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A display label for the CodeList. May be expressed in multiple languages. Repeat for labels with different content, for example, labels with differing length limitations.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Description" minOccurs="0">
<xs:annotation>
<xs:documentation>A description of the content and purpose of the CodeList. May be expressed in multiple languages and supports the use of structured content.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:RecommendedDataType" minOccurs="0">
<xs:annotation>
<xs:documentation>This field provides the recommended treatment of the data within an application. This field is important as some codes represented as numeric should be treated as strings, i.e., many standardized codes for industry, occupation, education, etc. The value should come from a controlled vocabulary - recommended values include the set found in W3C XML Schema Part 2, but excluding string sub-types, QNAME, and NOTATION.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:CodeListReference" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Allows for inclusion by reference of another CodeList. Care must be taken to ensure that all code values of the resulting CodeList are unique.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:CategorySchemeReference" minOccurs="0">
<xs:annotation>
<xs:documentation>Reference to a default category scheme, with the assumption that all categories referenced by the subsequent codes are part of it, unless overwritten by the scheme reference in the CategoryReference field of the code.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="HierarchyType" minOccurs="0">
<xs:annotation>
<xs:documentation>Identifies the type of hierarchy used in the nesting of categories. Possible values are Regular and Irregular. A regular nesting indicates that the category hierarchy is consistent at all lower levels of the hierarchy, i.e., the lowest levels of the hierarchy are at the same level for every branch on the hierarchy.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="Level" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Describes the levels of the code hierarchy. The level describes the nesting structure of a hierarchical coding structure. Note that the attribute levelNumber is used for referencing specific codes to their level identifier.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="Code" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Includes a code value, references the category label, and describes the code's position in a hierarchy.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="isSystemMissingValue" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>If "true" contents are used to represent system specific missing values. The default value is "false".</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="CodeListName" type="r:NameType">
<xs:annotation>
<xs:documentation>Name of the Code List using the DDI Name structure.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="LevelType">
<xs:annotation>
<xs:documentation>Used to describe the levels of the code list hierarchy. The level describes the nesting structure of a hierarchical coding structure. A level could have data attached to it (summary of its children) or no data attached to it (the equivalent of creating a category group in 2.0 and earlier versions Note that the attribute levelNumber is used for referencing specific codes to their level identifier. Although Code Lists can be physically nested, the use of a Level description and the level number on a specific code is needed to specify subsets of the CodeList for use in CodeRepresentations by level specification. Provides a name, description and level number. Specifies the relationship between the categories at that level and interval value if the relationship has the value of Interval.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="LevelName" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Name of a level in a code scheme. This should be short and explicit, such as Major Industrial Groups (2 digit SIC Codes) or NUTS 1. May be expressed in multiple languages. Repeat the element to express names with different content, for example different names for different systems.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Description" minOccurs="0">
<xs:annotation>
<xs:documentation>A description of the code Level. May be expressed in multiple languages and supports the use of structured content.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="CategoryRelationship" minOccurs="0">
<xs:annotation>
<xs:documentation>Describes the relationships among categories at that respective level. Possible values are either Nominal, Ordinal, or Interval. Note that different levels may have different types of relationships within the same hierarchy. For example, Level 1 items may be ordinal and Level 2 (the children of Level 1 items) may be nominal.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="Interval" minOccurs="0">
<xs:annotation>
<xs:documentation>Identifies the interval between each value of the codes at this level. Used only for codes with interval relationship.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="levelNumber" type="xs:integer" use="required">
<xs:annotation>
<xs:documentation>Designated identifier for the level; generally increases as the level of indention for nesting increases.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="CodeType">
<xs:annotation>
<xs:documentation>A structure that links a unique value of a code to a specified category and provides information as to the location of the code within a hierarchy, whether it is discrete, represents a total for the CodeList contents, and if its sub-elements represent a comprehensive coverage of the code. The Code is identifiable, but the value within the code must also be unique within the CodeList.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="r:IdentifiableType">
<xs:sequence>
<xs:element ref="r:CategoryReference">
<xs:annotation>
<xs:documentation>Reference to the category that the code value represents.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Value">
<xs:annotation>
<xs:documentation>The value of the code. In a microdata file this would be the value found in the data file. If used as the description of an NCube dimension the value provides the coordinate value for that dimension. Note that r:Value has an attribute xml:space with the default value of "default". If white space is critical to the understanding of this code value (such as critical leading or tailing spaces, or multiple spaces within the code) change the value of xml:space to "preserve".</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="Code" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Allows for nesting of codes.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="isDiscrete" type="xs:boolean" default="true">
<xs:annotation>
<xs:documentation>Indicates whether the code is discrete (that is, placed at the lowest level in a hierarchy and has no children).</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="levelNumber" type="xs:integer" use="optional">
<xs:annotation>
<xs:documentation>Level number of the code.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="isComprehensive" type="IsComprehensiveType" default="Unknown">
<xs:annotation>
<xs:documentation>Used in hierarchical structures at upper level values to indicate whether or not the subelements of the code are comprehensive in coverage. Not applicable if attribute isDiscrete is set to "true".</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="isTotal" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>This expresses a total whether or not isComprehensive is true. If isComprehensive = "true" then if addition is supported by the measure type, the contained categories can be aggregated to calculate the total. If isComprehensive = "false" or "unknown" the content of this field cannot be calculated if the value is not provided in the data.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="IntervalType">
<xs:annotation>
<xs:documentation>Describes the structure, starting point and increment step of an interval.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Anchor" type="xs:string">
<xs:annotation>
<xs:documentation>Identifies the start value for this interval.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="Increment" type="xs:string">
<xs:annotation>
<xs:documentation>Value specifying the increment between categories.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:element name="CodeListGroup" type="CodeListGroupType">
<xs:annotation>
<xs:documentation>A grouping of CodeLists for conceptual or administrative purposed.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="CodeListGroupType">
<xs:annotation>
<xs:documentation>A grouping of CodeLists for conceptual or administrative purposed. May be hierarchical.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="r:VersionableType">
<xs:sequence>
<xs:element ref="TypeOfCodeListGroup" minOccurs="0">
<xs:annotation>
<xs:documentation>A brief textual identification of the group type. Supports the use of an external controlled vocabulary.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="CodeListGroupName" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A name for the CodeListGroup. May be expressed in multiple languages. Repeat the element to express names with different content, for example different names for different systems.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Label" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A display label for the CodeList group. May be expressed in multiple languages. Repeat for labels with different content, for example, labels with differing length limitations.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Description" minOccurs="0">
<xs:annotation>
<xs:documentation>A description of the content and purpose of the CodeListGroup. May be expressed in multiple languages and supports the use of structured content.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:UniverseReference" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Reference to the universe statement describing the persons or other objects to which the contents of this CodeList group pertain.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:ConceptReference" minOccurs="0">
<xs:annotation>
<xs:documentation>Reference to the concept expressed by the CodeLists in this group.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Subject" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>If subjects are listed for this group, it is strongly recommended that the subjects listed also be found in the TopicalCoverage element for the parent packaging element when this group is included directly or by reference in a module containing a coverage element. Use of subject at the group level allows for associating objects as a type of subject based group or to identify subject characteristics of a reusable group of objects.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Keyword" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>If keywords are listed for this group, it is strongly recommended that the keywords listed also be found in the TopicalCoverage element for the parent packaging element when this group is included directly or by reference in a module containing a coverage element. Use of keyword at the group level allows for associating objects as a type of keyword based group or to identify keyword characteristics of a reusable group of objects.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="r:CodeListReference">
<xs:annotation>
<xs:documentation>Reference to constituent CodeList.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="CodeListGroupReference">
<xs:annotation>
<xs:documentation>Reference to constituent CodeListGroup. This allows for nesting of CodeListGroups.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
<xs:attribute name="isOrdered" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>If set to "true" indicates that the content of the group is ordered as it appears within the XML structure.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="CodeListGroupName" type="r:NameType">
<xs:annotation>
<xs:documentation>Name of the Code List Group using the DDI Name structure.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="TypeOfCodeListGroup" type="r:CodeValueType">
<xs:annotation>
<xs:documentation>A brief textual description of the type of group created to associate a number of code lists. Supports the use of an external controlled vocabulary.</xs:documentation>
</xs:annotation>
</xs:element>
<!-- VARIABLES -->
<xs:complexType name="VariableSchemeType">
<xs:annotation>
<xs:documentation>Contains a set of Variables and VariableGroups. In addition to the standard name, label, and description of the Variable Scheme, may contain another VariableScheme by reference, a listing of Variables (in-line or by reference), and a listing of VariableGroups (in-line or by reference).</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="r:MaintainableType">
<xs:sequence>
<xs:element ref="VariableSchemeName" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A name for the VariableScheme. May be expressed in multiple languages. Repeat the element to express names with different content, for example different names for different systems.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Label" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A display label for the scheme. May be expressed in multiple languages. Repeat for labels with different content, for example, labels with differing length limitations.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Description" minOccurs="0">
<xs:annotation>
<xs:documentation>A description of the content and purpose of the VariableScheme. May be expressed in multiple languages and supports the use of structured content.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:VariableSchemeReference" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Allows for the inclusion of another VariableScheme by reference.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="Variable">
<xs:annotation>
<xs:documentation>Describes a Variable in-line. This is the applied expression of a data item within a data set.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:VariableReference">
<xs:annotation>
<xs:documentation>Allows for the inclusion of an existing variable by reference.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="VariableGroup">
<xs:annotation>
<xs:documentation>Contains a group of Variables, which may be ordered or hierarchical.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="VariableGroupReference">
<xs:annotation>
<xs:documentation>Allows the inclusion of an existing VariableGroup by reference.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="VariableSchemeName" type="r:NameType">
<xs:annotation>
<xs:documentation>Name of the Variable Scheme using the DDI Name structure.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="VariableType">
<xs:annotation>
<xs:documentation>Describes the structure of a Variable. This is the applied expression of a data item within a data set and maps to the GSIM ImplementedVariable. In addition to the standard name, label, and description, includes a reference to a source parameter, represented variable, conceptual variable, universe, concept, question, source variable, and embargo information. It identifies the normal source of the data in the variable, the unit of analysis, whether the variable provides temporal or geographic information, or serves as a weight for other variables in the data, and provides a full description of its representation.</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="r:VersionableType">
<xs:sequence>
<xs:element ref="VariableName" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A name for the Variable. May be expressed in multiple languages. Repeat the element to express names with different content, for example different names for different systems.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Label" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>A display label for the Variable. May be expressed in multiple languages. Repeat for labels with different content, for example, labels with differing length limitations.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:Description" minOccurs="0">
<xs:annotation>
<xs:documentation>A description of the content and purpose of the Variable. May be expressed in multiple languages and supports the use of structured content.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:OutParameter" minOccurs="0">
<xs:annotation>
<xs:documentation>Assigns a parameter that contains output from the Variable so that it can be bound to an InParameter of an instruction or act as the SourceParameter of another Variable.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:SourceParameterReference" minOccurs="0">
<xs:annotation>
<xs:documentation>Reference to an OutParameter that serves as the source for the content of this variable.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:SourceVariableReference" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Reference to variable(s) used as a basis for recoding, derivation, or other means of calculating the data for this variable. This reference is intended to provide basic information on the source variable structure including value representation, measurement unit, etc. Note that if a variable is used by reference within multiple VariableSchemes you can identify its role within a specific VariableScheme by including that VariableScheme in the sourceContext attribute of the reference. Use ProcessingInstructionReference to provide additional information on the transformation of the source variable(s) into the data for this variable. If additional processing detail is required use the InParameter, OutParameter, and ParameterLinkage options in the GenerationInstruction and ProcessingInstructionReference.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="RepresentedVariableReference" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Reference to the RepresentedVariable that describes the core of this variable (the RepresentedVariable that the variable is the implementation of). The RepresentedVariable contains the broad reusable specification of the Variable, i.e., concept, universe, and value representation. These may be constrained by specifications within the Variable description. TypeOfObject should be set to RepresentedVariable.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:ConceptualVariableReference" minOccurs="0" maxOccurs="1">
<xs:annotation>
<xs:documentation>Reference to the ConceptualVariable that describes the core of this variable. The ConceptualVariable provides linked Concept and Universe specifications. These may be constrained by specifications within the Variable description. TypeOfObject should be set to ConceptualVariable.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:UniverseReference" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Reference to the universe statement containing a description of the persons or other elements that this variable refers to, and to which any analytic results refer. If more than one universe is referenced the universe of the variable is the intersect of the referenced universes.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:ConceptReference" minOccurs="0">
<xs:annotation>
<xs:documentation>Reference to the concept measured by this variable.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:QuestionReference" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Reference to question(s) used to collect data for this variable. This references the wording and response domain of the question, not the question flow (if the same question was asked in reference to multiple objects (i.e., Age of each child). Use SourceParameterReference and/or VariableRepresentation/ProcessingInstructionReference to differentiate sources associated with flow patterns or data processing instructions.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="EmbargoReference" minOccurs="0">
<xs:annotation>
<xs:documentation>Reference to any embargoes placed on the contents of this variable. Embargoes may limit access to the data and/or metadata to specific groups and/or for specified periods of time.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="SourceUnit" minOccurs="0">
<xs:annotation>
<xs:documentation>The normal source of the information contained in the variable. In the case of a survey this may be a respondent, proxy, interviewer, or other source. In the case of administrative data the position of a field on a form e.g., "top of page", "item 3", "generated by data processor", etc. Supports the use of an external controlled vocabulary.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:AnalysisUnit" minOccurs="0">
<xs:annotation>
<xs:documentation>The entity to which the data refer, for example, individuals, families or households, groups, institutions/organizations, administrative units, etc. Supports the use of an external controlled vocabulary.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="VariableRepresentation" minOccurs="0">
<xs:annotation>
<xs:documentation>Describes the representation of the variable in the data set, including allowed content, data typing, and computation information.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="isTemporal" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>Set to "true" if the variable relays time-related information (date, time, season, relative time, etc.).</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="isGeographic" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>Set to "true" if the variable relays geographic information, i.e., geographic code, area name, relative location, etc.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="isWeight" type="xs:boolean" default="false">
<xs:annotation>
<xs:documentation>Set to "true" if the variable is used a weight when analyzing data within the data set.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="VariableName" type="r:NameType">
<xs:annotation>
<xs:documentation>Name of the Variable using the DDI Name structure.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="SourceUnit" type="r:CodeValueType">
<xs:annotation>
<xs:documentation>The normal source of the information contained in the variable. In the case of a survey this may be a respondent, proxy, interviewer, or other source. In the case of administrative data the position of a field on a form e.g., "top of page", "item 3", "generated by data processor", etc. Supports the use of an external controlled vocabulary.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="VariableRepresentationType">
<xs:annotation>
<xs:documentation>Describes the representation of the variable in the data set. Describes the function of the variable, variables or standard weights that may be used to weight this variable during analysis, imputation and processing information, other variables used to create the value of this variable through concatenation, valid value representations (valid for analysis of respondents), missing value representations, aggregation methods used to generate the content of the variable, and additivity information.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="VariableRole" minOccurs="0">
<xs:annotation>
<xs:documentation>Describes a specific function of the variable, such as identity, weight, geographic variable, time, date, currency, etc. This is a more extensive means of identifying the function of the variable than the Boolean indicators on the variable. Allows for agency specific designations. Supports the use of a controlled vocabulary.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:WeightVariableReference" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Reference to one or more weight variables that may be used in analyzing this variable.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="StandardWeightReference" minOccurs="0">
<xs:annotation>
<xs:documentation>Reference to the StandardWeight found in the Weighting description, which is relevant for analyzing this variable. A standard weight is a single weight used for all variables of a specific type or for a specified sub-universe.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="ImputationReference" minOccurs="0">
<xs:annotation>
<xs:documentation>Reference to the imputation process described as a General Instruction in a ProcessingInstructionScheme.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="ConcatenatedValue" minOccurs="0">
<xs:annotation>
<xs:documentation>Provides a reference to other variables and describes the method for deriving the value of this variable by concatenating a collection of other variables. This is useful in creating concatenated keys.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:ProcessingInstructionReference" minOccurs="0">
<xs:annotation>
<xs:documentation>A reference to either a general or generation instruction that was provided to those who converted information from one form to another to create a particular variable. This might include the reordering of numeric information into another form or the conversion of textual information into numeric information.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:choice minOccurs="0">
<xs:element ref="r:ValueRepresentation">
<xs:annotation>
<xs:documentation>Describes the actual representation of the variables' values. Allows for the listing of values to be treated as missing in order to support 3.1 structures. The preferred method is the use of a reference to ManagedMissingValues description using MissingValuesReference. If both are used and there is a conflict in the content, MissingValuesReference will override the content provided in the ValueRepresentationReference.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:ValueRepresentationReference">
<xs:annotation>
<xs:documentation>Allows for the use of a ManagedRepresentation by reference. ValueRepresentationReference is the abstract head of a substitution group and may be replaced with any valid substitution for ValueRepresentationReference.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:choice>
<xs:element ref="MissingValuesReference" minOccurs="0">
<xs:annotation>
<xs:documentation>Reference to an existing MissingValuesRepresentation using the Reference structure. If this content conflicts with content provided in the ValueRepresentation regarding Missing Values. The content of the MissingValuesRepresentation overrides. TypeOfObject will be MissingValuesRepresentation</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:MeasurementUnit" minOccurs="0">
<xs:annotation>
<xs:documentation>Records the measurement unit, for example, 'km', 'miles', etc. Supports the use of a controlled vocabulary.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:ContentDateOffset" minOccurs="0">
<xs:annotation>
<xs:documentation>Identifies the difference between the date applied to the data as a whole and this specific item such as previous year's income or residence 5 years ago.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element ref="r:AggregationMethod" minOccurs="0">
<xs:annotation>
<xs:documentation>Indicates the type of aggregation method used. Supports the use of a controlled vocabulary.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="additivity" type="AdditivityCodeType" use="optional">
<xs:annotation>
<xs:documentation>Records type of additivity, such as 'stock', 'flow', 'non-additive'.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:element name="MissingValuesReference" type="r:ReferenceType">
<xs:annotation>
<xs:documentation>Reference to an existing ManagedMissingValuesRepresentation using the Reference structure. TypeOfObject should be set to ManagedMissingValuesRepresentation.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:complexType name="ConcatenatedValueType">
<xs:annotation>
<xs:documentation>Lists the variables whose values when concatenated result in the value for this variable.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="r:VariableReference" minOccurs="2" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Identifies the variables whose values are concatenated to form the concatenated variable. Note that the order of these variables determines the order of concatenation.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="GenerationType">
<xs:annotation>
<xs:documentation>Description of the process used to generate the category content. Includes a reference to component parts, a description of the generation process, a structured command, and other materials that are needed in the generation process. The item may be designated as a derivation process (default value) and be qualified in some way by a qualification attribute.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="ComponentReference" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>