-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathspif.xsd
980 lines (975 loc) · 44.1 KB
/
spif.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
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="../Stylesheets/xsd.xsl" type="text/xsl"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xml="http://www.w3.org/XML/1998/namespace"
xmlns="http://www.xmlspif.org/spif"
xmlns:spif="http://www.xmlspif.org/spif"
targetNamespace="http://www.xmlspif.org/spif"
elementFormDefault="unqualified" attributeFormDefault="unqualified"
xml:lang="en">
<xs:annotation>
<xs:documentation>
<div>
<h1>About the SPIF namespace</h1>
<div class="bodytext">
<p>
This schema document describes the Security Policy Information File (SPIF) namespace, in a form
suitable for import by other schema documents.
</p>
<p>A SPIF describes a security labelling policy including:</p>
<ul>
<li>Policy - its name and other unique identifers</li>
<li>Classifications - the valid classifications within the policy and their associated values for use within a security label and to support the access control decision function</li>
<li>Security Categories - the valid categories with the policy and their associated values for use within a security label and to support the access control decision function</li>
<li>Relationships - the relationships (e.g. required, excluded) between categories and classification and other categories</li>
<li>Equivalency - the equivalent values of classifications and categories in another policy</li>
<li>Marking - instructions how to generate a marking from classification and category values</li>
<li>Input - directions for how the user may enter free-form category values</li>
</ul>
<p>A SPIF can be used to promote the consistent use of security labels and marking and may be used, for example, to</p>
<ul>
<li>generate a semantically valid security label</li>
<li>generate a semantically valid clearance</li>
<li>verify the validity of a security label</li>
<li>generate an corresponding marking</li>
<li>generate a equivalent security label in an alternate policy</li>
</ul>
<p>
See <a href="http://www.xmlspif.org/">http://www.xmlspif.org</a> for further information.
</p>
</div>
</div>
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
<!-- Version -->
<xs:simpleType name="version">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>The version of the schema:</p>
<ul>
<li>1.0 - the original schema derived from SDN.801</li>
<li>
2.0 - updated to support for:
<ul>
<li>Validity period for the whole SPIF and individual category values</li>
<li>MarkingData and MarkingQualifier for privacyMark</li>
<li>MarkingData and MarkingQualifier for privacyMarks</li>
<li>MarkingData and MarkingQualifier for securityClassifications</li>
<li>Constrain the number of privacy mark values that can be selected</li>
<li>MarkingQualifier with tagCategory</li>
<li>Better contraints for the number of allowed tags from a tagset</li>
<li>DateFormat for Date category values</li>
<li>MarkingData and MarkingQualifier for an ObjectIDData</li>
<li>MarkingData and MarkingQualifier for a SPIF</li>
<li>Required categories for an equivalentPolicy</li>
<li>Required categories for an equivalentClassification</li>
<li>Equivalency between tag sets and allow required categories for a equivalentTagSet</li>
</ul>
</li>
<li>
2.1 - small update for :
<ul>
<li>Additional <a href="#type_markingCode">markingCode</a> for policy annotation.</li>
<li>Additional schema constraints</li>
</ul>
</li>
</ul>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="1.0" />
<xs:enumeration value="2.0" />
<xs:enumeration value="2.1" />
</xs:restriction>
</xs:simpleType>
<!-- Object Identifier (OID) -->
<xs:simpleType name="oid">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>An Object IDentifier as a string, for example 1.3.26.1.</p>
<p>
For further information see X.680 or <a href="www.oid-info.com">www.oid-info.com</a>
</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<!-- v2.0: Bug fix to pattern -->
<xs:pattern value="[0-2](\.[0-9]+)+" />
<!-- End of v2.0 addition -->
</xs:restriction>
</xs:simpleType>
<!-- Label and Certificate Value (Integer) -->
<xs:simpleType name="lacvInt">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>The Label and Certificate Value as an integer member type.</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:integer" />
</xs:simpleType>
<!-- Label and Certificate Value (String) -->
<xs:simpleType name="lacvString">
<xs:annotation>
<xs:documentation>
<xs:documentation>
<div class="bodytext">
<p>The Label and Certificate Value as an string member type.</p>
<p>Typically used for category values rather than classifications.</p>
</div>
</xs:documentation>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string" />
</xs:simpleType>
<!-- Label and Certificate Value -->
<xs:simpleType name="lacv">
<xs:annotation>
<xs:documentation>
<xs:documentation>
<div class="bodytext">
<p>The Label and Certificate Value type, which is the union of the lacvInt and lacvString types.</p>
<p>This value is encoded within the classification and security categories in a security label or a security clearance (which may be held within a certificate).</p>
</div>
</xs:documentation>
</xs:documentation>
</xs:annotation>
<xs:union memberTypes="lacvInt lacvString" />
</xs:simpleType>
<!-- v2.0: new types -->
<xs:simpleType name="selectionInt">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>The selection integer member type, which allows the specification of the maximum number of selections to be made.</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:integer" />
</xs:simpleType>
<xs:simpleType name="selectionString">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>The selection string member type, which have specific values: </p>
<ul>
<li>unbounded - any number of selections can be made.</li>
</ul>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="unbounded" />
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="selection">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>The selection type, which is the union of the selectionInt and selectionString types, allows the specification of the maximum number of category values that can be made.</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:union memberTypes="selectionInt selectionString" />
</xs:simpleType>
<xs:simpleType name="equivalencyAction">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>The equivalencyAction type indicates the action to be performed on a category value when mapping a security label to an equivalent policy.</p>
<p>The values are: </p>
<ul>
<li>discard - it is acceptable that the original category value has no mapping. The tagSetId and lacv will not be used.</li>
</ul>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="discard"/>
</xs:restriction>
</xs:simpleType>
<!-- End of v2.0 additions -->
<!-- Operation -->
<xs:simpleType name="operation">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>
The operation type indicates how many of the categories within an <a href="#type_optionalCategoryGroup">optionalCategoryGroup</a> are required.
</p>
<p>The values are: </p>
<ul>
<li>onlyOne - only one of the values identified within the optionalCategoryGroup are required.</li>
<li>onlyOne - one or more of the values identified within the optionalCategoryGroup are required.</li>
<li>all - all of the values identified within the optionalCategoryGroup are required.</li>
</ul>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="onlyOne" />
<xs:enumeration value="oneOrMore" />
<xs:enumeration value="all" />
</xs:restriction>
</xs:simpleType>
<!-- User Input -->
<xs:simpleType name="userInput">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>
The format of a <a href="#tag_tagCategory">tagCategory</a> value that can be entered by the user.
</p>
<p>The values are: </p>
<ul>
<li>string - an aribtrary string</li>
<li>integer - an unsigned integer</li>
<li>date - a date in the format defined by the dateFormat attribute. </li>
</ul>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="string" />
<xs:enumeration value="integer" />
<xs:enumeration value="date" />
</xs:restriction>
</xs:simpleType>
<!-- Classification Hierarchy -->
<xs:simpleType name="hierarchy">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>
The hierarchy type represents the hierarchical value of a classification, as opposed to the value that will be placed into a security label or certificate (the lacv).
</p>
<p>
The hierachy value is used to determine the dominance of classification values, for example, when making an access control decision.
</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:integer" />
</xs:simpleType>
<!-- Classification Name -->
<xs:simpleType name="className">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>Classification name - the name of a classification (limited to a maximum of 256 characters).</p>
<p>The classification name is the default marking phrase for the classification.</p>
<p>The classificaiton name is also used to identify any classifications that are excluded by a tagCategory.</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:maxLength value="256" />
</xs:restriction>
</xs:simpleType>
<xs:element name="excludedClass" type="className" />
<!-- Policy Name -->
<xs:simpleType name="policyName">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>Policy name - the name of a policy (limited to a maximum of 256 characters).</p>
<p>The policy name is also used to identify the policy for equivalent policies, classifications and categoryTags.</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:maxLength value="256" />
</xs:restriction>
</xs:simpleType>
<!-- Marking Phrase -->
<xs:simpleType name="markingPhrase">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>Marking phrase - a string (limited to a maximum of 256 characters) that will be used in generation a marking from a security label.</p>
<p>Multiple marking phrases may be concatenated to generate the final marking, and different marking phrases may be used in different locations.</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:maxLength value="256" />
</xs:restriction>
</xs:simpleType>
<!-- Tag Set Name -->
<xs:simpleType name="tagSetName">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>Tag Set Name - the name (limited to a maximum of 256 characters) of a set of tags (or categories).</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:maxLength value="256" />
</xs:restriction>
</xs:simpleType>
<!-- Generalised Time -->
<xs:simpleType name="genTime">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>Generalised Time - a string (limited to a maximum of 256 characters) that represents a time.</p>
<p>It may take one of three forms:</p>
<ul>
<li>Local time - `YYYYMMDDHH[MM[SS[.fff]]]', where the optional fff is accurate to three decimal places.</li>
<li>Universal time (UTC time, or Zulu time) - `YYYYMMDDHH[MM[SS[.fff]]]Z'.</li>
<li>Offset from Universal time. `YYYYMMDDHH[MM[SS[.fff]]]+-HHMM'</li>
</ul>
<p>Note that these formats are not currently enforced within the type.</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string" />
</xs:simpleType>
<!-- Marking Code -->
<xs:simpleType name="markingCode">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>Marking Code - the location to display a marking phrase.</p>
<p>The values are:</p>
<ul>
<li>pageTop - Display on top of the page or viewing area e.g. header.</li>
<li>pageBottom - Display on bottom of the page or viewing area e.g. footer.</li>
<li>pageTopBottom - Display on top and bottom of the page or viewing area e.g. header and footer.</li>
<li>documentStart - Display at the start of document e.g. cover page</li>
<li>documentEnd - Display at the end of document e.g. end page</li>
<li>noNameDisplay - Do not display of the classification or security category name; only display the marking phrase.</li>
<li>noMarkingDisplay - Do not display marking phrase on output; display marking phrase only during operator input</li>
<li>suppressClassName - Do not display of the classification name, but display security category.</li>
<li>firstLineOfText - Display on the first line of the body text e.g. the body text of an email message.</li>
<li>lastLineOfText - Display on the last line of the body text e.g. the body text of an email message.</li>
<li>subject - The subject of an email message.</li>
<li>xHeader - The header of an email message. The actual header name is held within the prefix qualifier.</li>
<li>portionMarking - Display on a portion of a document</li>
<li>inputTitle - Display a title, or label, on a GUI element. The title will be held within the prefix qualifier.</li>
<li>waterMark - Display as a watermark behind the main text of a document.</li>
<li>replacePolicy - Replace the policy marking phrase.</li>
</ul>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="pageTop" />
<xs:enumeration value="pageBottom" />
<xs:enumeration value="pageTopBottom" />
<xs:enumeration value="documentStart" />
<xs:enumeration value="documentEnd" />
<xs:enumeration value="noNameDisplay" />
<xs:enumeration value="noMarkingDisplay" />
<xs:enumeration value="suppressClassName" />
<!-- v2.0: additional marking codes -->
<xs:enumeration value="firstLineOfText" />
<xs:enumeration value="lastLineOfText" />
<xs:enumeration value="subject" />
<xs:enumeration value="xHeader" />
<xs:enumeration value="portionMarking" />
<xs:enumeration value="inputTitle" />
<xs:enumeration value="waterMark" />
<!-- End of v2.0 additions -->
<!-- v2.1: additional marking code -->
<xs:enumeration value="replacePolicy" />
<!-- End of v2.1 additions -->
</xs:restriction>
</xs:simpleType>
<xs:element name="code" type="markingCode" />
<!-- Tag Type -->
<xs:simpleType name="tagType">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>Tag Type - the type of tag category.</p>
<p>The values are:</p>
<ul>
<li>notApplicable - not applicable</li>
<li>restrictive - bit set of tag categories where all of the selected tag categories are required in the clearance.</li>
<li>enumerated - integer set of tag categories, with tag further refined by the enumType.</li>
<li>permissive - bit set of tag categories where at least one of the selected tag categories are required in the clearance</li>
<li>tagType7 - (or informative) tag categories that are not used for access control.</li>
</ul>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="notApplicable" />
<xs:enumeration value="restrictive" />
<xs:enumeration value="enumerated" />
<xs:enumeration value="permissive" />
<xs:enumeration value="tagType7" />
</xs:restriction>
</xs:simpleType>
<!-- Enumerated Type -->
<xs:simpleType name="enumType">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>Enum Type - the type of an enumerated tag category.</p>
<p>The values are:</p>
<ul>
<li>restrictive - tag categories where all of the selected tag categories are required in the clearance.</li>
<li>permissive - tag categories where at least one of the selected tag categories are required in the clearance</li>
</ul>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="restrictive" />
<xs:enumeration value="permissive" />
</xs:restriction>
</xs:simpleType>
<!-- Tag Type 7 Encoding -->
<xs:simpleType name="tag7Encoding">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>Tag7 Encoding - the type of tagType7 (informative) tagType.</p>
<p>The same value must be used for all tagType7 tag categories within a catgeory tag set.</p>
<p>The values are:</p>
<ul>
<li>bitSetAttributes - bit set values </li>
<li>securityAttributes - integer set value c.f. enumerated permissive or restrictive</li>
</ul>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="bitSetAttributes" />
<xs:enumeration value="securityAttributes" />
</xs:restriction>
</xs:simpleType>
<!-- Qualifier Code -->
<xs:simpleType name="qualifierCode">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>Qualifier Code - indicates how a markingQualifier is to be applied</p>
<p>The values are:</p>
<ul>
<li>prefix - as a prefix to the values</li>
<li>suffix - as a suffix to the values</li>
<li>separator - as a separator between the values</li>
</ul>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="prefix" />
<xs:enumeration value="suffix" />
<xs:enumeration value="separator" />
</xs:restriction>
</xs:simpleType>
<!-- Applied -->
<xs:simpleType name="applied">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>Use this value to indicate that the equivalency may be applied when considering the clearance of the recipient.</p>
<p>The values are:</p>
<ul>
<li>encrypt - by the originator (e.g. before sending an email to the recipient)</li>
<li>decrypt - by the recipient (e.g. before opening an email)</li>
<li>both - by both the originator (e.g. before sending an email to the recipient) and recipient (e.g. before opening an email)</li>
</ul>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="encrypt"/>
<xs:enumeration value="decrypt"/>
<xs:enumeration value="both"/>
</xs:restriction>
</xs:simpleType>
<!-- Colour (W3C) -->
<xs:simpleType name="colorW3C">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>The color W3C member type, which allows the specification of a color using a standard W3C color name.</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="aqua" />
<xs:enumeration value="black" />
<xs:enumeration value="blue" />
<xs:enumeration value="fuschia" />
<xs:enumeration value="gray" />
<xs:enumeration value="green" />
<xs:enumeration value="lime" />
<xs:enumeration value="maroon" />
<xs:enumeration value="navy" />
<xs:enumeration value="olive" />
<xs:enumeration value="purple" />
<xs:enumeration value="red" />
<xs:enumeration value="silver" />
<xs:enumeration value="teal" />
<xs:enumeration value="white" />
<xs:enumeration value="yellow" />
</xs:restriction>
</xs:simpleType>
<!-- Colour (RGB) -->
<xs:simpleType name="colorRGB">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>The color RGB member type, which allows the specification of a color using Red Green Blue (RGB) values.</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="#[0-9a-fA-F]{6}" />
</xs:restriction>
</xs:simpleType>
<!-- Colour -->
<xs:simpleType name="color">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>The color type, which is the union of the colorW3C and colorRGB types, allows the specification of a color.</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:union memberTypes="colorW3C colorRGB" />
</xs:simpleType>
<!-- v2.0: validity period for elements of the SPIF -->
<xs:attributeGroup name="validity">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>A group of attributes that determine the period in which the associated elementy is valid</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:attribute name="notBefore" type="xs:dateTime" />
<xs:attribute name="notAfter" type="xs:dateTime" />
</xs:attributeGroup>
<!-- End of v2.0 addition -->
<!-- Optional Category Data -->
<xs:complexType name="optionalCategoryData">
<xs:annotation>
<xs:documentation>Categories associated with specific classification or category.</xs:documentation>
</xs:annotation>
<xs:attribute name="tagSetRef" type="tagSetName" use="required" />
<xs:attribute name="tagType" type="tagType" use="required" />
<xs:attribute name="enumType" type="enumType" use="optional" />
<xs:attribute name="lacv" type="lacv" />
<xs:attribute name="all" type="xs:boolean" />
<xs:anyAttribute />
</xs:complexType>
<xs:element name="categoryGroup" type="optionalCategoryData" />
<xs:element name="excludedCategory" type="optionalCategoryData" />
<!-- Optional Category Group -->
<xs:complexType name="optionalCategoryGroup">
<xs:sequence>
<xs:element ref="categoryGroup" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="operation" type="operation" />
<xs:anyAttribute />
</xs:complexType>
<xs:element name="requiredCategory" type="optionalCategoryGroup" />
<!-- Update Info -->
<xs:complexType name="updateInfo" />
<xs:element name="updateInfo" type="updateInfo" />
<!-- Equivalent Classification -->
<xs:complexType name="equivalentClassification">
<!-- v2.0: requiredCategories for this classification -->
<xs:sequence>
<xs:element ref="requiredCategory" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<!-- End of v2.0 addition-->
<xs:attribute name="policyRef" type="policyName" use="required" />
<xs:attribute name="lacv" type="lacvInt" use="required" />
<xs:attribute name="applied" type="applied" use="required" />
<xs:anyAttribute />
</xs:complexType>
<xs:element name="equivalentClassification" type="equivalentClassification" />
<!-- Equivalent Policy -->
<xs:complexType name="equivalentPolicy">
<xs:annotation>
<xs:documentation>Consolidates all equivalent policies in the SPIF</xs:documentation>
</xs:annotation>
<!-- v2.0: requiredCategories when mapping into an equivalent policy. E.g. to include a REL TO relating to original policy -->
<xs:sequence>
<xs:element ref="requiredCategory" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<!-- End of v2.0 addition -->
<xs:attribute name="name" type="policyName" use="required" />
<xs:attribute name="id" type="oid" use="required" />
<xs:attribute name="userRefURI" type="xs:anyURI" />
<xs:attribute name="docRefURI" type="xs:anyURI" />
<xs:anyAttribute />
</xs:complexType>
<xs:element name="equivalentPolicy" type="equivalentPolicy" />
<!-- Equivalent Policies -->
<xs:complexType name="equivalentPolicies">
<xs:sequence>
<xs:element ref="equivalentPolicy" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:element name="equivalentPolicies" type="equivalentPolicies" />
<!-- Privacy Mark -->
<xs:complexType name="privacyMark">
<xs:annotation>
<xs:documentation>A privacy mark that may be used in the label.</xs:documentation>
</xs:annotation>
<!-- v2.0: markingData and markingQualifier for privacyMark -->
<xs:sequence>
<xs:element ref="markingData" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="markingQualifier" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<!-- End of v2.0 addition -->
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="obsolete" type="xs:boolean" default="false" />
<xs:anyAttribute />
</xs:complexType>
<xs:element name="privacyMark" type="privacyMark" />
<!-- Privacy Marks -->
<xs:complexType name="privacyMarks">
<xs:sequence>
<xs:element ref="privacyMark" maxOccurs="unbounded" />
<!-- v2.0: marking Data and markingQualifier for privacyMarks-->
<xs:element ref="markingData" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="markingQualifier" minOccurs="0" maxOccurs="unbounded" />
<!-- End of v2.0 addition -->
</xs:sequence>
<!-- v2.0: constrain the number of privacy marks -->
<xs:attribute name="maxSelection" type="selection" default="unbounded" />
<xs:attribute name="minSelection" type="selection" default="unbounded" />
<!-- End of v2.0 additions -->
</xs:complexType>
<xs:element name="privacyMarks" type="privacyMarks" />
<!-- Marking Data -->
<xs:complexType name="markingData">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>The markingData identifies the marking information attached to the data object</p>
<p>It consists of:</p>
<ul>
<li>phrase - the marking phrase</li>
<li>code - a sequence of marking codes which identifies where the marking phrase is physically applied.</li>
</ul>
<p>If the markingPhrase is absent, then the markingCode applies to the SecurityClassification classificationName, TagCategories secCategoryName or SPIF securityPolicyId name, depending on which component includes the markingData.</p>
</div>
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="code" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="phrase" type="markingPhrase" />
<xs:anyAttribute />
</xs:complexType>
<xs:element name="markingData" type="markingData" />
<!-- Security Classification -->
<xs:complexType name="securityClassification">
<xs:annotation>
<xs:documentation>Security Classification</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="equivalentClassification" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="markingData" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="markingQualifier" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="requiredCategory" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="className" use="required" />
<xs:attribute name="color" type="color" />
<xs:attribute name="lacv" type="lacvInt" use="required" />
<xs:attribute name="hierarchy" type="hierarchy" use="required" />
<xs:attribute name="obsolete" type="xs:boolean" default="false" />
<xs:anyAttribute />
</xs:complexType>
<xs:element name="securityClassification" type="securityClassification" />
<!-- Security Classifications -->
<xs:complexType name="securityClassifications">
<xs:sequence>
<xs:element ref="securityClassification" maxOccurs="unbounded" />
<!-- v2.0: markingData and markingQualifiers for securityClassifications -->
<xs:element ref="markingData" minOccurs="0" maxOccurs="unbounded"/>
<xs:element ref="markingQualifier" minOccurs="0" maxOccurs="unbounded" />
<!-- End of v2.0 addition -->
</xs:sequence>
<!-- v2.0: name for the classifications and allow any other attribute to be associated with them -->
<xs:attribute name="name" type="xs:string"/>
<xs:anyAttribute/>
<!-- End of v2.0 addition -->
</xs:complexType>
<xs:element name="securityClassifications" type="securityClassifications" />
<!-- Equivalent Security Category Tag -->
<xs:complexType name="equivalentSecCategoryTag">
<xs:attribute name="policyRef" type="policyName" use="required" />
<xs:attribute name="tagSetId" type="oid" use="required" />
<xs:attribute name="tagType" type="tagType" use="required" />
<xs:attribute name="enumType" type="enumType" />
<xs:attribute name="lacv" type="lacv" use="required" />
<xs:attribute name="applied" type="applied" use="required" />
<!-- v2.0: action to be performed during equivalency -->
<xs:attribute name="action" type="equivalencyAction" />
<!-- End of v2.0 addition -->
<xs:anyAttribute />
</xs:complexType>
<xs:element name="equivalentSecCategoryTag" type="equivalentSecCategoryTag" />
<!-- Tag Category -->
<xs:complexType name="tagCategory">
<xs:sequence>
<xs:element ref="equivalentSecCategoryTag" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="markingData" minOccurs="0" maxOccurs="unbounded" />
<!-- v2.0: associate markingQualifiers with tagCategories -->
<xs:element ref="markingQualifier" minOccurs="0" maxOccurs="unbounded" />
<!-- End of v2.0 addition -->
<xs:element ref="excludedClass" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="requiredCategory" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="excludedCategory" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" use="required" />
<xs:attribute name="lacv" type="lacv" use="required" />
<xs:attribute name="userInput" type="userInput" />
<xs:attribute name="requiredClass" type="className" />
<xs:attribute name="obsolete" type="xs:boolean" default="false" />
<!-- v2.0: format of dates to be entered -->
<xs:attribute name="dateFormat" type="xs:string">
<xs:annotation>
<xs:documentation>Format as defined in ISO 8601</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attributeGroup ref="validity" />
<!-- End of v2.0 addition -->
<xs:anyAttribute />
</xs:complexType>
<xs:element name="tagCategory" type="tagCategory" />
<!-- Qualifier -->
<xs:complexType name="qualifier">
<xs:attribute name="markingQualifier" type="markingPhrase" use="required" />
<xs:attribute name="qualifierCode" type="qualifierCode" use="required" />
<xs:anyAttribute />
</xs:complexType>
<xs:element name="qualifier" type="qualifier" />
<!-- Marking Qualifier -->
<xs:complexType name="markingQualifier">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>The markingQualifier qualifies the markingData associated with a data object (e.g. it specifies a suffix or a prefix). </p>
<p>It consists of:</p>
<ul>
<li>qualifier - a qualifier (e.g. a suffix, prefix or separator)</li>
<li>markingCode - a code which identifies where the phrase is to be physically applied.</li>
</ul>
</div>
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element ref="qualifier" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="markingCode" type="markingCode" />
<xs:anyAttribute />
</xs:complexType>
<xs:element name="markingQualifier" type="markingQualifier" />
<!-- Security Category Tag -->
<xs:complexType name="securityCategoryTag">
<xs:sequence>
<xs:element ref="tagCategory" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="markingQualifier" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="tagType" type="tagType" use="required" />
<xs:attribute name="enumType" type="enumType" />
<xs:attribute name="tag7Encoding" type="tag7Encoding" />
<xs:attribute name="singleSelection" type="xs:boolean" default="false" />
<!-- v2.0: Constrain the number of selections (beyond one or any) -->
<xs:attribute name="maxSelection" type="selection" default="unbounded" />
<xs:attribute name="minSelection" type="selection" default="unbounded" />
<!-- End of v2.0 addition -->
<xs:anyAttribute />
</xs:complexType>
<xs:element name="securityCategoryTag" type="securityCategoryTag" />
<!-- Security Category Tag Set -->
<xs:complexType name="securityCategoryTagSet">
<xs:sequence>
<xs:element ref="securityCategoryTag" maxOccurs="unbounded" />
<!-- v2.0: mark equivalency between tag sets (e.g. REL TO, EYES ONLY) and allows categories to be added to equivalent label based on tag set presence (e.g. add REL TO NATO if a REL TO tagset is present) -->
<xs:element ref="equivalentSecurityCategoryTagSet" minOccurs="0" maxOccurs="unbounded" />
<!-- End of v2.0 addition -->
</xs:sequence>
<xs:attribute name="name" type="tagSetName" use="required" />
<xs:attribute name="id" type="oid" use="required" />
<xs:anyAttribute />
</xs:complexType>
<xs:element name="securityCategoryTagSet" type="securityCategoryTagSet" />
<!-- v2.0: to allow requiredCategories for an equivalent policy when a tag set is present (and possibly allow algorithmic mapping of tag sets ) -->
<!-- Equivalent Security Category Tag Set -->
<xs:complexType name="equivalentSecurityCategoryTagSet">
<xs:sequence>
<xs:element ref="requiredCategory" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="policyRef" type="policyName" use="required" />
<xs:attribute name="name" type="tagSetName" />
<xs:attribute name="id" type="oid" />
<xs:anyAttribute />
</xs:complexType>
<xs:element name="equivalentSecurityCategoryTagSet" type="equivalentSecurityCategoryTagSet" />
<!-- End of v2.0 addition -->
<!-- Security Category Tag Sets -->
<xs:complexType name="securityCategoryTagSets">
<xs:sequence>
<xs:element ref="securityCategoryTagSet" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:element name="securityCategoryTagSets" type="securityCategoryTagSets" />
<!-- Object ID Data -->
<xs:complexType name="objectIdData">
<!-- v2.0: associate markingData and markingQualifiers with a policy -->
<xs:sequence>
<xs:element ref="markingData" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="markingQualifier" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<!-- End of v2.0 addition -->
<xs:attribute name="name" type="policyName" use="required" />
<xs:attribute name="id" type="oid" use="required" />
<xs:anyAttribute />
</xs:complexType>
<xs:element name="defaultSecurityPolicyId" type="objectIdData" />
<xs:element name="securityPolicyId" type="objectIdData" />
<!-- Extensions -->
<xs:complexType name="extensions">
<xs:annotation>
<xs:documentation>A set of vendor-specific extensions</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:element name="extensions" type="extensions" />
<!-- Security Policy Information File -->
<xs:element name="SPIF">
<xs:annotation>
<xs:documentation>
<div class="bodytext">
<p>The complete Security Policy Information.</p>
<p>It contains:</p>
<ul>
<li>defaultSecurityPolicyId - identifies the security policy which will apply if data is received without a security label</li>
<li>securityPolicyId - identifies the security policy to which the SPIF applies</li>
<li>updateInfo - not currently used</li>
<li>securityClassifications - the set of security classifications defined within the policy, together with their equivalency mappings</li>
<li>securityCategoryTagSets - the set of security category tags defined within the policy, together with their equivalency mappings</li>
<li>privacyMarks - the set of privacy marks defined within the policy, together with their equivalency mappings</li>
<li>equivalentPolicies - consolidated list of all equivalent policies used within the SPIF</li>
<li>markingData</li>
<li>markingQualifer</li>
<li>extensions - provides a mechanism to include additional capabilities as future requirements are identified.</li>
<li>schemaVersion - the version of the schema being used</li>
<li>version - the version of the SPIF. Changes to the SPIF will generally update the version.</li>
<li>creationDate - the date the SPIF was created/updated</li>
<li>originatorDN - the distinguished name (DN) of creator of the SPIF, using an LDAP encoding as defined in RFC 4514.</li>
<li>keyIdentifier identifies the key used to sign the SPIF.</li>
<li>privilegeId - identifies the syntax that is included in the clearance attribute security category of relying certificates</li>
<li>rbacId - identifies the syntax of the security category that is used in conjunction with the SPIF</li>
<li>userRefURI - a reference to a document that provides further information on the use of the values defined within the SPIF. </li>
<li>docRefURI - a reference to a document that provides information on the values defined within the SPIF.</li>
<li>validity - the validaty of the SPIF (e.g. it may only be used for a specific exercise)</li>
</ul>
</div>
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element ref="defaultSecurityPolicyId" minOccurs="0" />
<xs:element ref="securityPolicyId" />
<xs:element ref="updateInfo" minOccurs="0" />
<xs:element ref="securityClassifications" />
<xs:element ref="securityCategoryTagSets" minOccurs="0" />
<xs:element ref="privacyMarks" minOccurs="0" />
<xs:element ref="equivalentPolicies" minOccurs="0" />
<!-- v2.0: markingData and markingQualifier with a SPIF -->
<xs:element ref="markingData" minOccurs="0" maxOccurs="unbounded" />
<xs:element ref="markingQualifier" minOccurs="0" maxOccurs="unbounded" />
<!-- End of v2.0 addition -->
<xs:element ref="extensions" minOccurs="0" />
</xs:sequence>
<xs:attribute name="schemaVersion" type="version" use="required" />
<xs:attribute name="version" type="xs:integer" default="1" />
<xs:attribute name="creationDate" type="genTime" use="required" />
<xs:attribute name="originatorDN" type="xs:string" use="required" />
<xs:attribute name="keyIdentifier" type="xs:string" use="required" />
<xs:attribute name="privilegeId" type="oid" use="required" />
<xs:attribute name="rbacId" type="oid" use="required" />
<xs:attribute name="userRefURI" type="xs:anyURI" />
<xs:attribute name="docRefURI" type="xs:anyURI" />
<!-- v2.0: validity of SPIF -->
<xs:attributeGroup ref="validity" />
<!-- End of v2.0 addition -->
<xs:anyAttribute />
</xs:complexType>
<!-- Constraints -->
<xs:unique name="uqPolicyId">
<xs:selector xpath="spif:equivalentPolicies/spif:equivalentPolicy | spif:defaultSecurityPolicyId" />
<xs:field xpath="@id" />
</xs:unique>
<xs:key name="stPolicy">
<xs:selector xpath="spif:equivalentPolicies/spif:equivalentPolicy | spif:defaultSecurityPolicyId" />
<xs:field xpath="@name" />
</xs:key>
<xs:keyref name="refPolicy1" refer="stPolicy">
<xs:selector xpath="spif:securityClassifications/spif:securityClassification/spif:equivalentClassification" />
<xs:field xpath="@policyRef" />
</xs:keyref>
<xs:keyref name="refPolicy2" refer="stPolicy">
<xs:selector xpath="spif:securityCategoryTagSets/spif:securityCategoryTagSet/spif:securityCategoryTag/spif:tagCategory/spif:equivalentSecCategoryTag" />
<xs:field xpath="@policyRef" />
</xs:keyref>
<xs:key name="stClass">
<xs:selector xpath="spif:securityClassifications/spif:securityClassification" />
<xs:field xpath="@name" />
</xs:key>
<xs:unique name="uqClass">
<xs:selector xpath="spif:securityClassifications/spif:securityClassification" />
<xs:field xpath="@lacv" />
</xs:unique>
<xs:unique name="uqClassColor">
<xs:selector xpath="spif:securityClassifications/spif:securityClassification" />
<xs:field xpath="@color" />
</xs:unique>
<!-- v2.1: Uniqueness of securityTagSet ids -->
<xs:unique name="uqSecurityCategoryTagSetId">
<xs:selector xpath="spif:securityCategoryTagSets/spif:securityCategoryTagSet" />
<xs:field xpath="@id" />
</xs:unique>
<!-- End of v2.1 addition -->
<xs:keyref name="refClass1" refer="stClass">
<xs:selector xpath="spif:securityCategoryTagSets/spif:securityCategoryTagSet/spif:securityCategoryTag/spif:tagCategory" />
<xs:field xpath="@requiredClass" />
</xs:keyref>
<xs:keyref name="refClass2" refer="stClass">
<xs:selector xpath="spif:securityCategoryTagSets/spif:securityCategoryTagSet/spif:securityCategoryTag/spif:tagCategory/spif:excludedClass" />
<xs:field xpath="." />
</xs:keyref>
<xs:key name="stTagSet">
<xs:selector xpath="spif:securityCategoryTagSets/spif:securityCategoryTagSet" />
<xs:field xpath="@name" />
</xs:key>
<xs:keyref name="refTagSet1" refer="stTagSet">
<xs:selector xpath="spif:securityCategoryTagSets/spif:securityCategoryTagSet/spif:securityCategoryTag/tagCategory/spif:requiredCategory/spif:categoryGroup" />
<xs:field xpath="@tagSetRef" />
</xs:keyref>
<xs:keyref name="refTagSet2" refer="stTagSet">
<xs:selector xpath="spif:securityCategoryTagSets/spif:securityCategoryTagSet/spif:securityCategoryTag/spif:tagCategory/spif:excludedCategory" />
<xs:field xpath="@tagSetRef" />
</xs:keyref>
<xs:keyref name="refTagSet3" refer="stTagSet">
<xs:selector xpath="spif:securityClassifications/spif:securityClassification/spif:requiredCategory/spif:categoryGroup" />
<xs:field xpath="@tagSetRef" />
</xs:keyref>
</xs:element>
</xs:schema>