Avoid potential negative array index access to cached text.
[LibreOffice.git] / sfx2 / classification / baf.xsd
blobabf003b38624fb3f58f2459e5e2f8f19dfbafb7c
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:xal="urn:oasis:names:tc:ciq:xal:3" xmlns:xnl="urn:oasis:names:tc:ciq:xnl:3" xmlns="urn:tscp:names:baf:1.1" targetNamespace="urn:tscp:names:baf:1.1">
3 <xs:import namespace="urn:oasis:names:tc:ciq:xal:3" schemaLocation="xAL.xsd"/>
4 <xs:import namespace="urn:oasis:names:tc:ciq:xnl:3" schemaLocation="xNL.xsd"/>
5 <xs:import namespace="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" schemaLocation="baf_loext.xsd"/>
7 <!-- Business Authorization -->
8 <xs:complexType name="BusinessAuthorization">
9 <xs:sequence>
10 <xs:element ref="PolicyAuthorityName"/>
11 <xs:element ref="PolicyName"/>
12 <xs:element ref="AdministrativeData"/>
13 <xs:element ref="Scope" minOccurs="0" maxOccurs="1"/>
14 <xs:element ref="Included"/>
15 <xs:element ref="Excluded" minOccurs="0" maxOccurs="1"/>
16 </xs:sequence>
17 </xs:complexType>
18 <xs:element name="AdministrativeData">
19 <xs:complexType>
20 <xs:sequence>
21 <xs:element ref="ProgramID"/>
22 <xs:element ref="LicenseID" minOccurs="0" maxOccurs="1"/>
23 <xs:element ref="StartValidityDate" minOccurs="0" maxOccurs="1"/>
24 <xs:element ref="StopValidityDate" minOccurs="0" maxOccurs="1"/>
25 <xs:element ref="Applicant" minOccurs="0" maxOccurs="1"/>
26 <xs:element ref="Signatories" minOccurs="0" maxOccurs="1"/>
27 </xs:sequence>
28 </xs:complexType>
29 </xs:element>
30 <xs:element name="Included">
31 <xs:complexType>
32 <xs:sequence>
33 <xs:element ref="BusinessAuthorizationCategory" maxOccurs="unbounded"/>
34 <xs:element ref="loext:Marking" minOccurs="0" maxOccurs="unbounded"/>
35 <xs:element ref="loext:IntellectualPropertyPart" minOccurs="0" maxOccurs="unbounded"/>
36 <xs:element ref="loext:IntellectualPropertyPartNumber" minOccurs="0" maxOccurs="unbounded"/>
37 </xs:sequence>
38 </xs:complexType>
39 </xs:element>
40 <xs:element name="Excluded">
41 <xs:complexType>
42 <xs:sequence>
43 <xs:element ref="BusinessAuthorizationCategory" minOccurs="0" maxOccurs="unbounded"/>
44 <xs:element ref="loext:Marking" minOccurs="0" maxOccurs="unbounded"/>
45 <xs:element ref="loext:IntellectualPropertyPart" minOccurs="0" maxOccurs="unbounded"/>
46 <xs:element ref="loext:IntellectualPropertyPartNumber" minOccurs="0" maxOccurs="unbounded"/>
47 </xs:sequence>
48 </xs:complexType>
49 </xs:element>
50 <xs:element name="StopValidityDate">
51 <xs:simpleType>
52 <xs:restriction base="xs:date"/>
53 </xs:simpleType>
54 </xs:element>
55 <xs:element name="StartValidityDate">
56 <xs:simpleType>
57 <xs:restriction base="xs:date"/>
58 </xs:simpleType>
59 </xs:element>
60 <!-- Business Authorization Category -->
61 <xs:element name="BusinessAuthorizationCategory">
62 <xs:complexType>
63 <xs:sequence>
64 <xs:element ref="AccessRules" minOccurs="0" maxOccurs="1"/>
65 <xs:element ref="HandlingRules" minOccurs="0" maxOccurs="1"/>
66 <xs:element ref="LabelingRules"/>
67 <xs:element ref="ImpactLevel"/>
68 </xs:sequence>
69 <xs:attribute name="Identifier" type="xs:anyURI" use="required"/>
70 <xs:attribute name="Name" type="xs:string" use="optional"/>
71 <xs:attribute name="loextAbbreviatedName" type="xs:string" use="optional"/>
72 </xs:complexType>
73 </xs:element>
74 <!-- Impact Level -->
75 <xs:element name="ImpactLevel">
76 <xs:complexType>
77 <xs:sequence>
78 <xs:element ref="Scale"/>
79 <xs:element ref="ConfidentalityValue" minOccurs="0" maxOccurs="1"/>
80 <xs:element ref="IntegrityValue" minOccurs="0" maxOccurs="1"/>
81 <xs:element ref="AvailabilityValue" minOccurs="0" maxOccurs="1"/>
82 </xs:sequence>
83 </xs:complexType>
84 </xs:element>
85 <xs:element name="Scale" type="xs:string"/>
86 <xs:element name="ConfidentalityValue" type="xs:string"/>
87 <xs:element name="IntegrityValue" type="xs:string"/>
88 <xs:element name="AvailabilityValue" type="xs:string"/>
89 <!-- Handling Rule -->
90 <xs:complexType name="HandlingRule" abstract="true"/>
91 <xs:complexType name="SecureWEBTransmission">
92 <xs:complexContent>
93 <xs:extension base="HandlingRule"/>
94 </xs:complexContent>
95 </xs:complexType>
96 <xs:complexType name="StorageRule">
97 <xs:complexContent>
98 <xs:extension base="HandlingRule"/>
99 </xs:complexContent>
100 </xs:complexType>
101 <xs:complexType name="SecureWEBStorage">
102 <xs:complexContent>
103 <xs:extension base="StorageRule"/>
104 </xs:complexContent>
105 </xs:complexType>
106 <xs:complexType name="SecureFileTransferTransmission">
107 <xs:complexContent>
108 <xs:extension base="HandlingRule"/>
109 </xs:complexContent>
110 </xs:complexType>
111 <xs:complexType name="SecureEmailTransmission">
112 <xs:complexContent>
113 <xs:extension base="HandlingRule"/>
114 </xs:complexContent>
115 </xs:complexType>
116 <xs:complexType name="MediumAuthentication">
117 <xs:complexContent>
118 <xs:extension base="HandlingRule"/>
119 </xs:complexContent>
120 </xs:complexType>
121 <xs:complexType name="FileDeletion">
122 <xs:complexContent>
123 <xs:extension base="HandlingRule"/>
124 </xs:complexContent>
125 </xs:complexType>
126 <xs:complexType name="DesktopStorage">
127 <xs:complexContent>
128 <xs:extension base="HandlingRule"/>
129 </xs:complexContent>
130 </xs:complexType>
131 <!-- Labeling Rule -->
132 <xs:element name="VisualMarkingPart">
133 <xs:complexType>
134 <xs:sequence>
135 <xs:element ref="Identifier"/>
136 <xs:element ref="Value"/>
137 </xs:sequence>
138 <xs:attribute name="type" type="xs:anyURI" use="optional"/>
139 </xs:complexType>
140 </xs:element>
141 <xs:element name="Identifier"/>
142 <xs:element name="Value"/>
143 <!-- Others -->
144 <xs:element name="WorkEffortsScope">
145 <xs:complexType>
146 <xs:sequence>
147 <xs:element ref="WorkEfforts"/>
148 </xs:sequence>
149 </xs:complexType>
150 </xs:element>
151 <xs:element name="WorkEfforts">
152 <xs:complexType>
153 <xs:sequence>
154 <xs:element ref="WorkEffort" maxOccurs="unbounded"/>
155 </xs:sequence>
156 </xs:complexType>
157 </xs:element>
158 <xs:element name="WorkEffort">
159 <xs:complexType>
160 <xs:sequence>
161 <xs:element ref="Name"/>
162 </xs:sequence>
163 <xs:attribute name="id" type="xs:string" use="required"/>
164 </xs:complexType>
165 </xs:element>
166 <xs:element name="Signatories">
167 <xs:complexType/>
168 </xs:element>
169 <xs:element name="Scope">
170 <xs:complexType>
171 <xs:sequence>
172 <xs:element ref="OrganizationsScope"/>
173 <xs:element ref="WorkEffortsScope"/>
174 <xs:element ref="ActionsScope"/>
175 </xs:sequence>
176 </xs:complexType>
177 </xs:element>
178 <xs:element name="Rules">
179 <xs:complexType>
180 <xs:sequence>
181 <xs:element ref="HandlingRules"/>
182 <xs:element ref="LabelingRules"/>
183 </xs:sequence>
184 </xs:complexType>
185 </xs:element>
186 <xs:element name="PolicyAuthorityName" type="xs:string"/>
187 <xs:element name="PolicyName" type="xs:string"/>
188 <xs:element name="ProgramID" type="xs:string"/>
189 <xs:element name="OrganizationsScope">
190 <xs:complexType>
191 <xs:sequence>
192 <xs:element ref="Organizations"/>
193 </xs:sequence>
194 </xs:complexType>
195 </xs:element>
196 <xs:element name="Organizations">
197 <xs:complexType>
198 <xs:sequence>
199 <xs:element ref="Organization" maxOccurs="unbounded"/>
200 </xs:sequence>
201 </xs:complexType>
202 </xs:element>
203 <xs:element name="Organization">
204 <xs:complexType>
205 <xs:sequence>
206 <xs:element ref="xnl:PartyName"/>
207 <xs:element ref="xal:Address"/>
208 </xs:sequence>
209 <xs:attribute name="id" use="required" type="xs:string"/>
210 </xs:complexType>
211 </xs:element>
212 <xs:element name="Name" type="xs:string"/>
213 <xs:element name="LicenseID" type="xs:anyURI"/>
214 <xs:element name="Level">
215 <xs:simpleType>
216 <xs:restriction base="xs:string">
217 <xs:enumeration value="Moderate"/>
218 </xs:restriction>
219 </xs:simpleType>
220 </xs:element>
221 <xs:element name="LabelingRules">
222 <xs:complexType>
223 <xs:sequence>
224 <xs:element ref="VisualMarkingPart" minOccurs="0" maxOccurs="unbounded"/>
225 </xs:sequence>
226 </xs:complexType>
227 </xs:element>
228 <xs:element name="InformationScope">
229 <xs:complexType>
230 <xs:sequence>
231 <xs:element ref="ImpactLevel"/>
232 <xs:element ref="ClassificationNumbers"/>
233 </xs:sequence>
234 </xs:complexType>
235 </xs:element>
236 <xs:element name="HandlingRules">
237 <xs:complexType>
238 <xs:sequence>
239 <xs:element ref="HandlingRule" minOccurs="0" maxOccurs="unbounded"/>
240 </xs:sequence>
241 </xs:complexType>
242 </xs:element>
243 <xs:element name="HandlingRule" type="HandlingRule"/>
244 <xs:element name="Countries">
245 <xs:complexType/>
246 </xs:element>
247 <xs:element name="ClassificationNumbers">
248 <xs:complexType/>
249 </xs:element>
250 <xs:element name="BusinessAuthorization" type="BusinessAuthorization"/>
251 <xs:element name="Applicant">
252 <xs:complexType>
253 <xs:sequence>
254 <xs:element ref="xnl:PartyName"/>
255 <xs:element ref="xal:Address"/>
256 </xs:sequence>
257 <xs:attribute name="id" use="required" type="xs:string"/>
258 </xs:complexType>
259 </xs:element>
260 <xs:element name="ActionsScope">
261 <xs:complexType>
262 <xs:sequence>
263 <xs:element ref="Actions"/>
264 </xs:sequence>
265 </xs:complexType>
266 </xs:element>
267 <xs:element name="Actions">
268 <xs:complexType>
269 <xs:sequence>
270 <xs:element ref="Action" maxOccurs="unbounded"/>
271 </xs:sequence>
272 </xs:complexType>
273 </xs:element>
274 <xs:element name="Action">
275 <xs:complexType>
276 <xs:sequence>
277 <xs:element ref="Name"/>
278 </xs:sequence>
279 <xs:attribute name="id" use="required" type="xs:string"/>
280 </xs:complexType>
281 </xs:element>
282 <xs:element name="AccessRules">
283 <xs:complexType>
284 <xs:sequence>
285 <xs:element ref="AccessRule" maxOccurs="unbounded"/>
286 </xs:sequence>
287 </xs:complexType>
288 </xs:element>
289 <xs:element name="AccessRule">
290 <xs:complexType>
291 <xs:sequence>
292 <xs:element ref="Organization"/>
293 <xs:element ref="Countries"/>
294 <xs:element ref="WorkEffort"/>
295 <xs:element ref="Actions"/>
296 </xs:sequence>
297 </xs:complexType>
298 </xs:element>
299 </xs:schema>