summaryrefslogtreecommitdiff
path: root/Tools/XMLSchema/FrameworkDataAttributes.xsd
blob: 4fdd9883c36ea5e0951a2bf9cac789c817df5adb (plain)
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
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns="http://www.TianoCore.org/2006/Edk2.0" targetNamespace="http://www.TianoCore.org/2006/Edk2.0">
    <!--
    Filename: FrameworkDataAttributes.xsd
    
    Copyright (c) 2006, Intel Corp.
    All rights reserved. This program and the accompanying materials
    are licensed and made available under the terms and conditions of the BSD License
    which may be found at http://opensource.org/licenses/bsd-license.php
    
    THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
    WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
    
  -->
    <xs:annotation>
        <xs:documentation xml:lang="en">This schema defines EFI and Framework Attribute. Only attributeGroups are specified in this file. </xs:documentation>
    </xs:annotation>
    <xs:include schemaLocation="NamingConvention.xsd"/>
    <xs:include schemaLocation="FrameworkDataTypes.xsd"/>
    <xs:include schemaLocation="FrameworkPlatformDataTypes.xsd"/>
    <xs:attributeGroup name="BlockAttributes">
        <xs:attribute name="Name" type="BlockNameType" use="required"/>
        <xs:attribute name="Size" type="HexAddressType" use="required"/>
        <xs:attribute name="Flags" type="HexAddressType" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="FlashDeviceImageAttributes">
        <xs:attribute name="Name" type="xs:string" use="required"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="FlashDeviceImageFileAttributes">
        <xs:attribute name="Name" type="xs:string" use="required"/>
        <xs:attribute name="Region" type="xs:string" use="required"/>
        <xs:attribute name="SubRegion" type="xs:string" use="optional"/>
        <xs:attribute name="Optional" type="xs:boolean" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="FlashDeviceInfoAttributes">
        <xs:attribute name="Name" type="xs:string" use="required"/>
        <xs:attribute name="Size" type="HexAddressType" use="required"/>
        <xs:attribute name="BaseAddress" type="HexAddressType" use="required"/>
        <xs:attribute name="ErasePolarity" type="Polarity" use="required"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="RawDataAttributes">
        <xs:attribute name="Name" type="xs:string" use="required"/>
        <xs:attribute name="Region" type="xs:string" use="required"/>
        <xs:attribute name="SubRegion" type="xs:string" use="required"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="RegionAttributes">
        <xs:attribute name="Name" type="xs:string" use="required"/>
        <xs:attribute name="Size" type="HexAddressType" use="required"/>
        <xs:attribute name="Flags" type="HexAddressType" use="optional"/>
        <xs:attribute name="Alignment" type="HexAddressType" use="optional"/>
        <xs:attribute name="Attributes" type="xs:string" use="required"/>
        <xs:attribute name="AreaType" type="EfiFvAreaType" use="required"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="SubRegionAttributes">
        <xs:attribute name="CreateHob" type="xs:boolean" use="required"/>
        <xs:attribute name="Name" type="xs:string" use="required"/>
        <xs:attribute name="Size" type="HexAddressType" use="required"/>
        <xs:attribute name="Attributes" type="xs:string" use="required"/>
        <xs:attribute name="AreaType" type="EfiFvAreaType" use="required"/>
        <xs:attribute name="NameGuid" type="xs:string" use="required"/>
        <xs:attribute name="AreaTypeGuid" type="xs:string" use="optional"/>
        <xs:attribute name="FileSystemGuid" type="xs:string" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="BaseNameAttributes">
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="BootModeAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="BootModeName" type="BootModeNames" use="required"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- DO NOT USE, remove Guid from use -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <!-- Make Usage REQUIRED in final -->
        <xs:attribute name="Usage" type="BootModeUsage" use="required"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="ConvertAttributeString">
        <xs:attribute name="OutputFilename" type="FileNameConvention" use="optional"/>
        <xs:attribute name="SourceString" type="xs:string" use="optional"/>
        <xs:attribute default="Unicode" name="OutputFiletype" type="xs:string" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="DataHubAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- DO NOT USE, remove Guid from use -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <!-- Make Usage REQUIRED in final -->
        <xs:attribute name="Usage" type="DataHubUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="DirectoryAttributes">
        <xs:attribute name="Separator" type="ToothPick"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="EventAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- Make EventGroup Required in final -->
        <xs:attribute name="EventGroup" type="EventTypes" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- DO NOT USE, remove Guid from use -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <!-- Make Usage REQUIRED in final -->
        <xs:attribute name="Usage" type="EventUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="ExternAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="Usage" type="ExternUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="FilenameAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="ModuleName" type="xs:NCName" use="optional"/>
        <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
        <xs:attribute name="ModuleGuid" type="GuidType" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="FileType" type="xs:string" use="optional"/>
        <!-- DO NOT USE, remove Guid from use -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <!-- DO NOT USE, remove Path from use -->
        <xs:attribute name="Path" type="DirectoryNamingConvention" use="optional"/>
        <!-- DO NOT USE, remove ToolChain from use, use ToolChainFamily -->
        <xs:attribute name="ToolChain" type="ToolChains" use="optional"/>
        <xs:attribute name="TagName" type="xs:NCName" use="optional"/>
        <xs:attribute name="ToolCode" type="xs:NCName" use="optional"/>
        <xs:attribute name="ToolChainFamily" type="xs:NCName" use="optional"/>
        <!-- DO NOT USE, remove Usage from use -->
        <xs:attribute name="Usage" type="FileNameUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="FormsetAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="Usage" type="FormSetUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="GuidAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- Make Usage REQUIRED in final -->
        <xs:attribute name="Usage" type="GuidUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="GuidDeclarationAttributes">
        <xs:attribute name="Name" type="xs:NCName" use="required"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="ModuleTypeList" type="ModuleTypeList" use="optional"/>
        <xs:attribute name="GuidTypeList" type="GuidListType" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="HiiPackageAttributes">
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="Usage" type="HiiPackageUsage" use="required"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="HobAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- DO NOT USE remove Guid from use -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="HobType" type="HobTypes" use="required"/>
        <!-- DO NOT USE remove HobEnabled from use -->
        <xs:attribute default="true" name="HobEnabled" type="xs:boolean" use="optional"/>
        <!-- USAGE is required in final -->
        <xs:attribute name="Usage" type="HobUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <!-- DO NOT USE remove IncludeAttributes from use -->
    <xs:attributeGroup name="IncludeAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove Class from use -->
        <xs:attribute name="Class" type="BaseNameConvention" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- DO NOT USE remove Guid from use -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="ModuleType" type="ModuleTypeDef" use="optional"/>
        <!-- DO NOT USE remove Path from use -->
        <xs:attribute name="Path" type="DirectoryNamingConvention" use="optional"/>
        <!-- DO NOT USE remove Version from use -->
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
        <xs:attribute name="ModuleTypeList" type="ModuleTypeList" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="IncludeHeaderAttributes">
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="ModuleTypeList" type="ModuleTypeList" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="IndustryStdHeaderAttributes">
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="ModuleTypeList" type="ModuleTypeList" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="LibraryAttributes">
        <!-- LibraryAttributes is used for Libraries / Library elements in FPD files -->
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <!-- LAH Does a LibraryInstance need to have FeatureFlag Attribute? -->
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- DO NOT USE remove Guid from use, Start using ModuleGuid instead -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <!-- DO NOT USE remove ClassGuid from use, Start using LibraryClassGuid instead -->
        <xs:attribute name="ClassGuid" type="GuidType" use="optional"/>
        <!-- DO NOT USE remove LibraryGuid from use, Start using ModuleGuid instead -->
        <xs:attribute name="LibraryGuid" type="GuidType" use="optional"/>
        <xs:attribute name="LibraryClass" type="BaseNameConvention" use="optional"/>
        <xs:attribute name="LibraryClassGuid" type="GuidType" use="optional"/>
        <xs:attribute name="ModuleGuid" type="GuidType" use="optional"/>
        <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
        <!-- DO NOT USE remove Package from use, Start using PackageName instead -->
        <xs:attribute name="Package" type="xs:string" use="optional"/>
        <xs:attribute name="PackageGuid" type="GuidType" use="optional"/>
        <xs:attribute name="PackageName" type="BaseNameConvention" use="optional"/>
        <xs:attribute name="PackageVersion" type="VersionDataType" use="optional"/>
        <xs:attribute name="Usage" type="LibraryUsage" use="optional"/>
        <!-- DO NOT USE remove Version from use, Start using ModuleVersion instead -->
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="LibraryClassAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="RecommendedInstanceVersion" type="xs:decimal" use="optional"/>
        <xs:attribute name="RecommendedInstanceGuid" type="GuidType" use="optional"/>
        <xs:attribute name="Usage" type="LibraryUsage" use="required"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="MsaGuidAttributes">
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="Usage" type="GuidUsage" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="ModuleNameAttributes">
        <xs:attribute name="Guid" type="GuidType" use="required"/>
        <!-- DO NOT USE remove Guid from use, Start using ModuleGuid instead -->
        <xs:attribute name="ModuleGuid" type="GuidType" use="required"/>
        <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
        <!-- DO NOT USE remove Version from use, Start using ModuleVersion instead -->
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="ModuleNameSaAttributes">
        <!-- DO NOT USE remove Guid from use, Start using ModuleGuid instead -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="ModuleGuid" type="GuidType" use="required"/>
        <xs:attribute name="ModuleName" type="xs:NCName" use="required"/>
        <xs:attribute name="ModuleVersion" type="VersionDataType" use="optional"/>
        <!-- DO NOT USE remove Version from use, Start using ModuleVersion instead -->
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="MsaAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="BuildSequence" type="xs:int" use="optional"/>
        <xs:attribute name="FvBinding" type="xs:string" use="optional"/>
        <xs:attribute name="ModuleName" type="xs:NCName" use="optional"/>
        <xs:attribute name="ModuleGuid" type="GuidType" use="optional"/>
        <xs:attribute name="PackageName" type="BaseNameConvention" use="optional"/>
        <xs:attribute name="PackageGuid" type="GuidType" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="OptionAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="BuildTarget" type="BuildTargets" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <!-- LAH Does an Option need to have FeatureFlag Attribute? -->
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="Platform" type="PlatformNamingConvention" use="optional"/>
        <xs:attribute name="ToolChain" type="ToolChains" use="optional"/>
        <xs:attribute name="ToolChainTag" type="xs:NCName" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PackageHeaderAttributes">
        <xs:attribute name="ModuleType" type="ModuleTypeDef" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PackageAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="PackageGuid" type="GuidType" use="optional"/>
        <xs:attribute name="PackageType" type="PackageType" use="optional"/>
        <xs:attribute name="PackageVersion" type="xs:string" use="optional"/>
        <xs:attribute name="UpdatedDate" type="DateType" use="optional"/>
        <xs:attribute name="Usage" type="PackageUsage" use="optional"/>
    </xs:attributeGroup>
    <!-- PackageNameAttributres are only used in the Package Dependencies section of an SPD file. -->
    <xs:attributeGroup name="PackageNameAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove Guid and start using PackageGuid instead -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <!-- CHANGE PackageGuid to REQUIRED in final -->
        <xs:attribute name="PackageGuid" type="GuidType" use="optional"/>
        <!-- DO NOT USE remove PackageTypeDependency from Use -->
        <!-- PackageTypeDepencency is used to identify if a SOURCE or BINARY PackageType is required, in case PackageGuid and/or PackageVersion are not tracked. -->
        <xs:attribute name="PackageTypeDependency" type="PackageType" use="optional"/>
        <xs:attribute name="PackageVersion" type="xs:string" use="optional"/>
        <!-- DO NOT USE remove Version and start using PackageVersion instead -->
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PcdAttributes">
        <xs:annotation>
            <xs:documentation xml:lang="en">These attributes are for the Pcds listed in PcdData, PcdEntry and/or PcdBuildData entries.</xs:documentation>
            <xs:documentation xml:lang="en">PcdUsage is only valid for PcdItemTypes = FEATURE_FLAG</xs:documentation>
            <xs:documentation xml:lang="en">Only NON FEATURE_FLAG PCDS should have the FeatureFlag attribute set.</xs:documentation>
        </xs:annotation>
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="ItemType" type="PcdItemTypes" use="required"/>
        <xs:attribute name="PcdUsage" type="PcdUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PcdBuildDefinitionAttributes">
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="ItemType" type="PcdItemTypes" use="required"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PcdDeclarationAttributes">
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="SupModuleTypes" type="ModuleTypeList" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PlatformAttributes">
        <!-- DO NOT USE remove AlternateName from use -->
        <xs:attribute name="AlternateName" type="FileNameConvention" use="optional"/>
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove Guid from use -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <xs:attribute name="PlatformName" type="PlatformNamingConvention" use="optional"/>
        <xs:attribute name="PlatformGuid" type="GuidType" use="optional"/>
        <xs:attribute name="PlatformVersion" type="xs:string" use="optional"/>
        <!-- DO NOT USE remove Version and start using PlatformVersion instead -->
        <xs:attribute name="Version" type="VersionDataType" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PpiDeclarationAttributes">
        <xs:attribute name="Name" type="xs:NCName" use="required"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="ModuleTypeList" type="ModuleTypeList" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PpiAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- DO NOT USE remove Guid from use -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <!-- Make Usage REQUIRED in final -->
        <xs:attribute name="Usage" type="PpiUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="PpiNotifyAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- DO NOT USE remove Guid from use -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <!-- Make Usage REQUIRED in final -->
        <xs:attribute name="Usage" type="PpiNotifyUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="ProtocolAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead-->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- DO NOT USE remove Guid from use -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <!-- Make Usage REQUIRED in final -->
        <xs:attribute name="Usage" type="ProtocolUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="ProtocolDeclarationAttributes">
        <xs:attribute name="Name" type="xs:NCName" use="required"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="ModuleTypeList" type="ModuleTypeList" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="ProtocolNotifyAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- DO NOT USE remove Guid from use -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <!-- Make Usage REQUIRED in final -->
        <xs:attribute name="Usage" type="ProtocolNotifyUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="SectionAttributes">
        <xs:annotation>
            <xs:documentation xml:lang="en">Attributes are either compressable and/or sequence order binding</xs:documentation>
        </xs:annotation>
        <xs:attribute name="BindingOrder" type="xs:int" use="optional"/>
        <xs:attribute default="true" name="Compressible" type="xs:boolean" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <!-- LAH Does a Section need to have FeatureFlag Attribute? -->
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="SectionType" type="EfiSectionType" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="SectionsAttributes">
        <xs:annotation>
            <xs:documentation xml:lang="en">Attributes for Sections, EncapsulationTag, EncapsulationType and FeatureFlag</xs:documentation>
        </xs:annotation>
        <xs:attribute name="EncapsulationType" type="xs:normalizedString" use="optional"/>
        <xs:attribute name="EncapsulationTag" type="xs:string" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <!-- LAH Does a Filename need to have FeatureFlag Attribute? -->
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="SystemTableAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- DO NOT USE remove Guid from use -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <!-- Make Usage REQUIRED in final -->
        <xs:attribute name="Usage" type="SystemTableUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="UrlAttribute">
        <xs:attribute name="Url" type="xs:anyURI"/>
    </xs:attributeGroup>
    <xs:attributeGroup name="VariableAttributes">
        <!-- DO NOT USE remove Arch from use, use SupArchList instead -->
        <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <!-- DO NOT USE remove EnableFeature from use -->
        <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
        <!-- DO NOT USE remove Guid from use -->
        <xs:attribute name="Guid" type="GuidType" use="optional"/>
        <!-- Make Usage REQUIRED in final -->
        <xs:attribute name="Usage" type="VariableUsage" use="optional"/>
        <!-- DO NOT USE remove OverrideID from use -->
        <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
    </xs:attributeGroup>
</xs:schema>