-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNIST_V1_ballot_definition.xsd
2430 lines (2356 loc) · 131 KB
/
NIST_V1_ballot_definition.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"?>
<!-- Version 1.0, NIST Ballot Definition CDF Specification, National Institute of Standards and Technology -->
<xsd:schema elementFormDefault="qualified" targetNamespace="http://itl.nist.gov/ns/voting/1500-20/v1" version="1.0" xmlns="http://itl.nist.gov/ns/voting/1500-20/v1" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!-- ========== Roots ========== -->
<xsd:element name="BallotDefinition" type="BallotDefinition"/>
<!-- ========== Primitives ========== -->
<xsd:simpleType name="DateTimeWithZone">
<xsd:annotation>
<xsd:documentation xml:lang="en">Restricts dateTime to require inclusion of time zone information and excludes fractional seconds. DateTimeWithZone is a subtype of dateTime.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:dateTime">
<xsd:pattern value="[0-9]{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]|(24:00:00))(Z|[+-]((0[0-9]|1[0-3]):[0-5][0-9]|14:00))">
<xsd:annotation>
<xsd:documentation xml:lang="en">Pattern used for indicating the date, time and the accompanying time zone.</xsd:documentation>
</xsd:annotation>
</xsd:pattern>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="FractionalNumber">
<xsd:annotation>
<xsd:documentation xml:lang="en">A proper fractional value, represented using fractional or decimal notation. FractionalNumber is a subtype of string.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:pattern value="([0-9]+/[1-9]+[0-9]*)|(\.[0-9]+)">
<xsd:annotation>
<xsd:documentation xml:lang="en">Pattern describing the allowed values for a FractionalNumber.</xsd:documentation>
</xsd:annotation>
</xsd:pattern>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="HtmlColorString">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a string containing a 6-digit Red-Green-Blue (RGB) code that can be displayed using HTML. Used in Party to associate a web-displayable color with the party. The RGB code is specified in hexadecimal, such that the RGB code for the color green is “00FF00” (“#00” + “#FF” + “#00”). HtmlColorString is a subtype of string.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:pattern value="[0-9a-f]{6}">
<xsd:annotation>
<xsd:documentation xml:lang="en">Pattern used for indicating the RGB color to use.</xsd:documentation>
</xsd:annotation>
</xsd:pattern>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ShortString">
<xsd:annotation>
<xsd:documentation xml:lang="en">For defining a 32-character annotation, used with character strings in AnnotatedString.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="32">
<xsd:annotation>
<xsd:documentation xml:lang="en">The maximum allowed length of a ShortString.</xsd:documentation>
</xsd:annotation>
</xsd:maxLength>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="TimeWithZone">
<xsd:annotation>
<xsd:documentation xml:lang="en">Restricts time to require inclusion of time zone information and excludes fractional seconds. TimeWithZone is a subtype of time.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:time">
<xsd:pattern value="(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]|(24:00:00))(Z|[+-]((0[0-9]|1[0-3]):[0-5][0-9]|14:00))">
<xsd:annotation>
<xsd:documentation xml:lang="en">Pattern used for indicating the time with the accompanying time zone.</xsd:documentation>
</xsd:annotation>
</xsd:pattern>
</xsd:restriction>
</xsd:simpleType>
<!-- ========== Enumerations ========== -->
<xsd:simpleType name="BallotDefinitionVersion">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="1.0.0">
<xsd:annotation>
<xsd:documentation xml:lang="en">For version 1.0.0 of this specification.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="BallotMeasureType">
<xsd:annotation>
<xsd:documentation xml:lang="en">Enumeration for types of ballot measures in the BallotMeasureContest element.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="ballot-measure">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a standard “yes” or “no” question on the ballot.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="initiative">
<xsd:annotation>
<xsd:documentation xml:lang="en">For an initiative.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="recall">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a recall.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="referendum">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a referendum.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="other">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used when the type of ballot measure is not included in this enumeration.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="BallotSideType">
<xsd:annotation>
<xsd:documentation xml:lang="en">The side of a ballot sheet.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="back">
<xsd:annotation>
<xsd:documentation xml:lang="en">The back of the ballot sheet.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="front">
<xsd:annotation>
<xsd:documentation xml:lang="en">The front of the ballot sheet</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="CandidatePreElectionStatus">
<xsd:annotation>
<xsd:documentation xml:lang="en">Enumeration for various pre-election statuses applicable to a candidate
in the Candidate
class.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="filed">
<xsd:annotation>
<xsd:documentation xml:lang="en">For candidates who have filed with the election authority but not necessarily qualified.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="qualified">
<xsd:annotation>
<xsd:documentation xml:lang="en">For candidates who are qualified by the election authority to be on the ballot for a contest.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="withdrawn">
<xsd:annotation>
<xsd:documentation xml:lang="en">For candidates who have withdrawn from the contest.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="DayType">
<xsd:annotation>
<xsd:documentation xml:lang="en">Enumeration for the day(s) in a schedule in the Schedule element.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="all">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for all days of the week.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="sunday">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used if day of week is Sunday.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="monday">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used if day of week is Monday.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="tuesday">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used if day of week is Tuesday.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="wednesday">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used if day of week is Wednesday.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="thursday">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used if day of week is Thursday.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="friday">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used if day of week is Friday.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="saturday">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used if day of week is Saturday.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="weekday">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for any day of the week except Saturday and Sunday.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="weekend">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for both Saturday and Sunday.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ElectionType">
<xsd:annotation>
<xsd:documentation xml:lang="en">Enumeration for the type of election in the BallotDefinition class.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="general">
<xsd:annotation>
<xsd:documentation xml:lang="en">Election in which all eligible voters, regardless of party affiliation, are permitted to select candidates to fill public office and/or vote on ballot measures.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="partisan-primary-closed">
<xsd:annotation>
<xsd:documentation xml:lang="en">Primary election in which the voter receives a ballot containing only those party-specific contests pertaining to the political party with which the voter is affiliated, along with non-party-specific contests presented at the same election. Unaffiliated voters may be permitted to vote only on non-party-specific contests.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="partisan-primary-open">
<xsd:annotation>
<xsd:documentation xml:lang="en">Primary election in which the voter may choose a political party at the time of voting and vote in party-specific contests associated with that party, along with non-party-specific contests presented at the same election. Some states require voters to publicly declare their choice of party at the polling place, after which the election worker provides or activates the appropriate ballot. Other states allow the voters to make their choice of party within the privacy of the voting booth.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="primary">
<xsd:annotation>
<xsd:documentation xml:lang="en">Election held to determine which candidates qualify to appear as contest options in subsequent elections.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="runoff">
<xsd:annotation>
<xsd:documentation xml:lang="en">Election to select a winner following a primary or a general election, in which no candidate in the contest received the required minimum percentage of the votes cast. The two candidates receiving the most votes for the contest in question proceed to a runoff election.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="special">
<xsd:annotation>
<xsd:documentation xml:lang="en">Primary or general election that is not regularly scheduled. A special election may be combined with a scheduled election.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="other">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used when the election type is not listed in this enumeration.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="GeoSpatialFormat">
<xsd:annotation>
<xsd:documentation xml:lang="en">Enumeration for geospatial vector data formats used in Geographic Information System (GIS) software, used in the SpatialExtent class.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="geo-json">
<xsd:annotation>
<xsd:documentation xml:lang="en">For GeoJSON open standard format.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="gml">
<xsd:annotation>
<xsd:documentation xml:lang="en">For Geography Markup Language format.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="kml">
<xsd:annotation>
<xsd:documentation xml:lang="en">For Keyhole Markup Language format.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="shp">
<xsd:annotation>
<xsd:documentation xml:lang="en">For the shape file format associated with Esri.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="wkt">
<xsd:annotation>
<xsd:documentation xml:lang="en">For Well-known Text format.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="IdentifierType">
<xsd:annotation>
<xsd:documentation xml:lang="en">Enumeration for election data-related codes in the ExternalIdentifier class .</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="fips">
<xsd:annotation>
<xsd:documentation xml:lang="en">For FIPS codes.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="local-level">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a code that is specific to a county or other similar locality.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="national-level">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a code that is used at the national level other than “fips” or “ocd-id”.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="ocd-id">
<xsd:annotation>
<xsd:documentation xml:lang="en">For Open Civic Data identifiers.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="state-level">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a code that is specific to a state.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="other">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used when the type of code is not included in this enumeration.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="MeasurementUnitType">
<xsd:annotation>
<xsd:documentation xml:lang="en">The measurement unit for describing the location of content on a ballot.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="in">
<xsd:annotation>
<xsd:documentation xml:lang="en">inches</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="mm">
<xsd:annotation>
<xsd:documentation xml:lang="en">millimeters</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="pc">
<xsd:annotation>
<xsd:documentation xml:lang="en">picas</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="pt">
<xsd:annotation>
<xsd:documentation xml:lang="en">points (1/72 inch)</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="OfficeTermType">
<xsd:annotation>
<xsd:documentation xml:lang="en">Enumeration for the office term type in the Office class.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="full-term">
<xsd:annotation>
<xsd:documentation xml:lang="en">When the officeholder’s term began at the beginning of the full term of the office, e.g., 6 years for U.S. Senate.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="unexpired-term">
<xsd:annotation>
<xsd:documentation xml:lang="en">When the officeholder’s term began at some date after the beginning of the full term of the office, generally because the previous officeholder vacated the office before the fullterm expired.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="OrientationType">
<xsd:annotation>
<xsd:documentation xml:lang="en">The orientation of a ballot sheet.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="landscape">
<xsd:annotation>
<xsd:documentation xml:lang="en">Orient the sheet so that the ballot content print across the long edge of the paper.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="portrait">
<xsd:annotation>
<xsd:documentation xml:lang="en">Orient the sheet so that the ballot content print across the short edge of the paper.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ReportingUnitType">
<xsd:annotation>
<xsd:documentation xml:lang="en">Enumeration for the type of geopolitical unit in the ReportingUnit class.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="ballot-batch">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for reporting batches of ballots that may cross precinct boundaries.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="ballot-style-area">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for ballot style areas generally composed of precincts.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="borough">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used in CT, NJ, PA, other states, and New York City for boroughs. For AK and LA, see county.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="city">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a city that reports results and/or for the district that encompasses it.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="city-council">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for city council districts.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="combined-precinct">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for one or more precincts that have been combined for the purposes of reporting. Used for “Ward” if “Ward” is used interchangeably with “CombinedPrecinct”.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="congressional">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for U.S. Congressional districts.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="country">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a reporting unit of type country.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="county">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a county and/or for the district that encompasses it. In AK, used for counties that are called boroughs. In LA, used for parishes.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="county-council">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for county council districts.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="drop-box">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a dropbox for absentee ballots.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="judicial">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for judicial districts.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="municipality">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used as applicable for various units such as towns, townships, villages that report votes and/or for the district that encompasses it.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="polling-place">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a polling place.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="precinct">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used also for “Ward” or “District” when these terms are used interchangeably with “Precinct”.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="school">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a school district.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="special">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a special district.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="split-precinct">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for splits of precincts.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="state">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a state and/or for the district that encompasses it.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="state-house">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a state house or assembly district.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="state-senate">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a state senate district.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="town">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used in some New England states as a type of municipality that reports votes and/or for the district that encompasses it.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="township">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used in some mid-western states as a type of municipality that reports votes and/or for the district that encompasses it.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="utility">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a utility district.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="village">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used as a type of municipality that reports votes and/or for the district that encompasses it.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="vote-center">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a vote center.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="ward">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for combinations or groupings of precincts or other units.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="water">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for a water district.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="other">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used for other types of reporting units not included in this enumeration.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="SelectionCaptureMethod">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="mcdf">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a read method that uses the mCDF encoded using a symbology.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="omr">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a read method that uses optical mark recognition.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ShapeType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="ellipse">
<xsd:annotation>
<xsd:documentation xml:lang="en">For an ellipse shape</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="rectangle">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a rectangle shape</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="StraightPartyRuleset">
<xsd:annotation>
<xsd:documentation xml:lang="en">Specifies how to consider indications made in the controlled contests of a straight party controlling contest.These specify the consequences direct selections made by the voter in controlled contests.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="inclusive">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a ruleset allowing any additional candidates selected by the straight-party to be included with directly selected candidates if the total number of candidates does not exceed the number of selections allowed.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="exclusive">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a ruleset that excludes any straight-party selections if there is a directly selected candidate in a contest.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="other">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used when the straight party rule type is not included in this enumeration.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="VoteVariation">
<xsd:annotation>
<xsd:documentation xml:lang="en">Enumeration for contest decision algorithm or rules in the Contest element.</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="approval">
<xsd:annotation>
<xsd:documentation xml:lang="en">When voter can select as many candidates as desired in a contest up to a maximum number.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="borda">
<xsd:annotation>
<xsd:documentation xml:lang="en">For the Borda count voting.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="cumulative">
<xsd:annotation>
<xsd:documentation xml:lang="en">When voter can allocate more than one vote to a given candidate.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="majority">
<xsd:annotation>
<xsd:documentation xml:lang="en">For majority voting.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="n-of-m">
<xsd:annotation>
<xsd:documentation xml:lang="en">Includes vote for 1, i.e., 1-of-m.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="plurality">
<xsd:annotation>
<xsd:documentation xml:lang="en">For plurality voting.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="proportional">
<xsd:annotation>
<xsd:documentation xml:lang="en">For proportional voting.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="range">
<xsd:annotation>
<xsd:documentation xml:lang="en">For range voting.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="rcv">
<xsd:annotation>
<xsd:documentation xml:lang="en">For ranked choice voting.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="super-majority">
<xsd:annotation>
<xsd:documentation xml:lang="en">For super majority voting.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
<xsd:enumeration value="other">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used when the vote variation type is not included in this enumeration.</xsd:documentation>
</xsd:annotation>
</xsd:enumeration>
</xsd:restriction>
</xsd:simpleType>
<!-- ========== Classes ========== -->
<xsd:complexType name="ActivationContest">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a contest containing an option that conditionally activates other contests on the ballot.This element uses ControllingContest as a superclass. Therefore, it inherits the attributes of Contest as well as ControllingContest.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="ControllingContest">
<xsd:sequence>
<xsd:element name="CandidateId" type="xsd:IDREF" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Link to a Candidate instance. For associating a candidate with the activation contest (e.g. a candidate subject to recall).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="SummaryText" type="InternationalizedText" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a summary on the ballot of the activation contest, e.g. "Should John Smith be recalled?".</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="ActivationOption">
<xsd:annotation>
<xsd:documentation xml:lang="en">For the contest selections in an ActivationContest. It inherits the attributes of ContestOption.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="ContestOption">
<xsd:sequence>
<xsd:element name="CausesActivation" type="xsd:boolean">
<xsd:annotation>
<xsd:documentation xml:lang="en">Boolean to indicate whether this selection, when chosen by the voter will cause controlled contests to activate.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Selection" type="InternationalizedText">
<xsd:annotation>
<xsd:documentation xml:lang="en">The text on the ballot associated with the selection.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="AnnotatedString">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used as a type for character strings; it adds a 32-character annotation to a character string. AnnotatedString is a subtype of string.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="Annotation" type="ShortString">
<xsd:annotation>
<xsd:documentation xml:lang="en">An annotation of up to 32 characters associated with a character string.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="AnnotatedUri">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used as a type for character strings that represent Uniform Resource Identifiers (URI); it adds a 32-character annotation to a character string.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:extension base="xsd:anyURI">
<xsd:attribute name="Annotation" type="ShortString">
<xsd:annotation>
<xsd:documentation xml:lang="en">An annotation of up to 32 characters associated with a character string.</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="BallotDefinition">
<xsd:annotation>
<xsd:documentation xml:lang="en">For defining items pertaining to the issuer and version of the definition and when it was generated.
BallotDefinition references the major elements that are not necessarily specific to an election and that therefore can exist in a logical ballot definition: GpUnit, Office and OfficeGroup, Party, Person, and Election.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="BallotFormat" type="BallotFormat" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating ballot formats with the definition.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Election" type="Election" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating elections with the definition.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ExternalIdentifier" type="ExternalIdentifier" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating an ID with the definition.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="GeneratedDate" type="DateTimeWithZone">
<xsd:annotation>
<xsd:documentation xml:lang="en">Identifies the date and time that the ballot definition was generated.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="GpUnit" type="GpUnit" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating geopolitical units with the definition.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Header" type="Header" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating headers with parts of a ballot style.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Issuer" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="en">Identification of the definition issuer.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="IssuerAbbreviation" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="en">An abbreviation of the definition issuer such as the 2-character U.S. Census Bureau abbreviation of the state providing the election definition, e.g., AL, TX, MN, etc.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="IsTest" type="xsd:boolean" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used to indicate whether the definition is a test. Assumed to be “false” if not present.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Notes" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">For including an arbitrary message with the definition.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Office" type="Office" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating offices with the definition.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="OfficeGroup" type="OfficeGroup" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating a name for a grouping of offices with the definition.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Party" type="Party" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating parties with the definition.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Person" type="Person" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating persons with the definition.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="SequenceStart" type="xsd:integer">
<xsd:annotation>
<xsd:documentation xml:lang="en">The report's number as part of a sequence of reports, used with SequenceEnd so as to be read as, e.g., 1 of 1, 1 of 2, 2 of 2, etc. Starts with "1".</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="SequenceEnd" type="xsd:integer">
<xsd:annotation>
<xsd:documentation xml:lang="en">The upper bound of the sequence; e.g., “1” if there is only 1 report, “2” if there are two reports in the sequence, etc.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Shape" type="Shape" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating parts of the ballot with geometric shapes.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="TestType" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">A description of the type of test, e.g., pre-election, logic and accuracy, etc.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="VendorApplicationId" type="xsd:string">
<xsd:annotation>
<xsd:documentation xml:lang="en">An identifier of the vendor application generating the ballot definition, e.g., X-EMS version 3.1.a.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Version" type="BallotDefinitionVersion">
<xsd:annotation>
<xsd:documentation xml:lang="en">To identify the version of the BD specification being used, i.e., version 1.0.0. This will need to be updated for different versions of the specification.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="BallotFormat">
<xsd:annotation>
<xsd:documentation xml:lang="en">For providing details related to the concrete presentation of a ballot appropriate to the particular voting technology being used. All physical details of a ballot style are associated with a particular BallotFormat.
BallotFormat sets the MeasurementUnit appropriate for the marking surface used.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="Application" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">The application that generates ballots in the ballot format.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ExternalIdentifier" type="ExternalIdentifier" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating IDs with the ballot format.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="FiducialMark" type="FiducialMark" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating a ballot format with one or more global fiducial marks appearing on a ballot.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="LongEdge" type="xsd:float">
<xsd:annotation>
<xsd:documentation xml:lang="en">Measurement of the long edge of the ballot sheet.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Manufacturer" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Manufacturer of the ballot format.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="mCDFArea" type="mCDFArea" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For locating the data encoded using a mCDF Profile (e.g. mCDF Profile for Contest Selection Capture).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="MeasurementUnit" type="MeasurementUnitType">
<xsd:annotation>
<xsd:documentation xml:lang="en">The measurement units used to express locations of ballot content, such as contest option positions.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Orientation" type="OrientationType">
<xsd:annotation>
<xsd:documentation xml:lang="en">Orientation of the page relative to the coordinate plane.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="SelectionCaptureMethod" type="SelectionCaptureMethod">
<xsd:annotation>
<xsd:documentation xml:lang="en">The method used to read contest selections or indications on the ballot.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ShortEdge" type="xsd:float">
<xsd:annotation>
<xsd:documentation xml:lang="en">Measurement of the short edge of the ballot sheet.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="ObjectId" type="xsd:ID" use="required"/>
</xsd:complexType>
<xsd:complexType name="BallotMeasureContest">
<xsd:annotation>
<xsd:documentation xml:lang="en">For ballot measure (i.e., referenda or a tax measure) and judicial retention contests. It inherits the attributes of Contest.
If the type of ballot measure is not listed in enumeration BallotMeasureType, use other and include the type (that is not listed in the enumeration) in OtherType.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="Contest">
<xsd:sequence>
<xsd:element name="ConStatement" type="InternationalizedText" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a statement on the ballot associated with a “no” vote.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="EffectOfAbstain" type="InternationalizedText" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a statement on the ballot detailing the effect of abstaining from voting on the ballot measure.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="FullText" type="InternationalizedText" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">For full text on the ballot of the ballot measure.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="InfoUri" type="AnnotatedUri" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating a URI with the ballot measure contest.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="PassageThreshold" type="InternationalizedText" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a statement on the ballot of the number or percentage of votes needed to approve or pass the ballot measure.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ProStatement" type="InternationalizedText" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a statement on the ballot associated with a “yes” vote.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="SummaryText" type="InternationalizedText" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a summary on the ballot of the ballot measure.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Type" type="BallotMeasureType" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">For indicating the type of ballot measure.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="OtherType" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Used when BallotMeasureType is other.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="BallotMeasureOption">
<xsd:annotation>
<xsd:documentation xml:lang="en">For a contest selection in a ballot measure contest. Because judicial or other retention contests are often treated like ballot measure contests, this element can be used also for retention contests. It inherits the attributes of ContestOption.</xsd:documentation>
</xsd:annotation>
<xsd:complexContent>
<xsd:extension base="ContestOption">
<xsd:sequence>
<xsd:element name="Selection" type="InternationalizedText">
<xsd:annotation>
<xsd:documentation xml:lang="en">Contains the text used to indicate a vote for or against the ballot measure, e.g., “yes”, “no”.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="BallotStyle">
<xsd:annotation>
<xsd:documentation xml:lang="en">For defining a ballot style composed of ordered content (i.e. Headers or Contests) and their contest selections, and associating the ballot style with a political party, a reference to an image of the ballot, and a reference to a precinct or other geopolitical unit that the ballot is unique to. Election includes BallotStyle.
BallotStyle references OrderedContent to include content that appears on that ballot style. To preserve any rotation associated with the ballot, it is expected that the generating application will list the occurrences of OrderedContest in the order as on the ballot for the associated geopolitical unit.
BallotStyle references one or more GpUnit instances defined for the associated precincts or split precincts. If the ballot style is associated with multiple precincts (or other geographies), multiple references to the precinct GpUnit instances can be included.</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element name="ExternalIdentifier" type="ExternalIdentifier" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating IDs with the ballot style.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="GpUnitIds" type="xsd:IDREFS">
<xsd:annotation>
<xsd:documentation xml:lang="en">Unique identifier for one or more GpUnit instances. For associating specific election administrative areas (e.g. precincts or splits) with the ballot style.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ImageUri" type="AnnotatedUri" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">URI for a sample ballot image.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Language" type="xsd:language" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For the written languages appearing on the ballot style.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="OrderedContent" type="OrderedContent" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating a ballot style with ballot content, such as contests or headers.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="PartyIds" type="xsd:IDREFS" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">For associating one or more parties with the ballot style.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="Purpose" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation xml:lang="en">Freeform text to further describe the purpose (e.g. federal-only ballot) of the ballot style.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>