summaryrefslogtreecommitdiff
path: root/BaseTools/Conf/XMLSchema/DistributionPackage.xsd
blob: 5ae85f2bc31175a0cbde2e92878da906da26636b (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
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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
<?xml version="1.0" encoding="UTF-8"?>
<!--
Filename: DistributionPackage.xsd

Copyright (c) 2008 - 2012, Intel Corporation. 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:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
    targetNamespace="http://www.uefi.org/2012/1.0" xmlns="http://www.uefi.org/2012/1.0">
    <xs:element name="DistributionPackage">
        <xs:annotation>
            <xs:documentation xml:lang="en-us"> This schema defines the UEFI/PI Distribution Package description (PKG)
                file. It describes the content of:</xs:documentation>
            <xs:documentation xml:lang="en-us"> 1) Package descriptions with definitions and headers.</xs:documentation>
            <xs:documentation xml:lang="en-us"> 2) Modules in either source or binary format. (Note that Binary format
                is for FFS leaf section file types only, complete FFS files cannot be distributed using this
                distribution format.) </xs:documentation>
            <xs:documentation xml:lang="en-us"> 3) The distribution of custom tools used to modify the binary images to
                create UEFI/PI compliant images. </xs:documentation>
            <xs:documentation xml:lang="en-us"> 4) Finally, it can be used to distribute other miscellaneous content
                that is not specific to UEFI/PI images. </xs:documentation>
            <xs:documentation xml:lang="en-us"> The Package Surface Area describes the content of packages, while the
                Module Surface Area provides information relevant to source and/or binary distributions.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="DistributionHeader" minOccurs="1" maxOccurs="1">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This header contains (legal) information usually required
                            for distributing both binary and/or source code. </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element ref="PackageSurfaceArea" minOccurs="0" maxOccurs="unbounded">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> The list of packages in this distribution. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> Packages are groups of files and/or modules that are similar
                            in nature.</xs:documentation>
                        <xs:documentation xml:lang="en-us"> Packages are uniquely identified by a package GUID and a
                            package version. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> A package can declare public mappings of C names to GUID
                            values. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> A package can provide header files for library classes
                            and/or other industry standard definitions. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> A package can also declare public mappings of platform
                            configuration database (PCD) &quot;knobs&quot; to control features and operation of modules
                            within a platform. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> Finally, a package lists the library instances and/or
                            modules that are provided in a distribution package. </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element ref="ModuleSurfaceArea" minOccurs="0" maxOccurs="unbounded">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> The listing of UEFI/PI compliant modules in this
                            distribution that are NOT part of a Package. Every module that is provided as part of a
                            package needs to be described in a PackageSurfaceArea.Modules section. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> The ModuleSurfaceArea section describes how each module in a
                            distribution is coded, or, in the case of a binary module distribution, how it was built. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> UEFI/PI compliant libraries and modules are uniquely
                            identified by the Module's GUID and version number. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> This section will typically be used for modules that don't
                            require any additional files that would be included in a package. For example, the Enhanced
                            FAT driver binary does not need to have a package description, as no additional files are
                            provided. </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element ref="Tools" minOccurs="0" maxOccurs="unbounded">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This section is for distributing vendor specific executable
                            tools, tool source code and/or configuration files. These tools are primarily for
                            manipulating code and/or binary images. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> Tools in this section can:</xs:documentation>
                        <xs:documentation xml:lang="en-us"> 1) Parse build meta-data files to create source code files
                            and build scripts. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> 2) Modify image files to conform to UEFI/PI specifications. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> 3) Generate binary files from certain types of text/unicode
                            files. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> 4) Generate PCI Option Roms or Firmware Device images. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> 5) Implement external encoding/decoding/signature/GUIDed
                            tools. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> 6) Distribution Package create/install/remove tools.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element ref="MiscellaneousFiles" minOccurs="0" maxOccurs="unbounded">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> The list of miscellaneous files in this distribution. Any
                            files that are not listed in either the Package, Module or Tools sections can be listed
                            here. This section can be used to distribute specifications for packages and modules that
                            are not &quot;industry standards&quot; such as a specification for a chipset or a video
                            device. </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element ref="UserExtensions" minOccurs="0" maxOccurs="unbounded">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> The UserExtensions section is used to disseminate processing
                            instructions that may be custom to the content provided by the distribution. This section
                            contains information that is common to all aspects of this disribution. </xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:sequence>

        </xs:complexType>
    </xs:element>
    <!-- End of the DistributionPackage Description  -->

    <xs:element name="DistributionHeader">
        <xs:annotation>
            <xs:documentation xml:lang="en-us"> This section defines the content of the UEIF/PI compliant Distribution
                Package Header. This is the only required element of a UEFI/PI compliant distribution package.
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element minOccurs="1" maxOccurs="1" name="Name">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This is the User Interface Name for this Distribution
                            Package. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> Each Distribution Package is uniquely identified by it's
                            GUID and Version number. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:simpleContent>
                            <xs:extension base="xs:normalizedString">
                                <xs:attribute name="BaseName" type="xs:NMTOKEN" use="optional">
                                    <xs:annotation>
                                        <xs:documentation xml:lang="en-us"> The reference name of the Distribution
                                            Package file. This single word name can be used by tools as a keyword or for
                                            directory and/or file creation. </xs:documentation>
                                        <xs:documentation xml:lang="en-us"> White space and special characters (dash and
                                            underscore characters may be used) are not permitted in this name.
                                        </xs:documentation>
                                    </xs:annotation>
                                </xs:attribute>
                            </xs:extension>
                        </xs:simpleContent>
                    </xs:complexType>
                </xs:element>
                <xs:element minOccurs="1" maxOccurs="1" name="GUID">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This 128-bit GUID and the Version attribute uniquely
                            identify this Distribution Package. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> Backward compatible releases of a distribution package need
                            only change the version number, while non-backward compatible changes require the GUID to
                            change (resetting the version number to 1.0 is optional.) </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:simpleContent>
                            <xs:extension base="RegistryFormatGuid">
                                <xs:attribute name="Version" type="xs:decimal" use="required">
                                    <xs:annotation>
                                        <xs:documentation xml:lang="en-us"> This value, along with the GUID, is used to
                                            uniquely identify this object. The higher the number, the more recent the
                                            content. </xs:documentation>
                                    </xs:annotation>
                                </xs:attribute>
                            </xs:extension>
                        </xs:simpleContent>
                    </xs:complexType>
                </xs:element>
                <xs:element minOccurs="1" maxOccurs="1" name="Vendor" type="xs:normalizedString">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> A string identifying who created this distribution package.
                        </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element minOccurs="1" maxOccurs="1" name="Date" type="xs:dateTime">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> The date and time this distribution was created. The format
                            is: YYYY-MM-DDThh:mm:ss, for example: 2001-01-31T13:30:00 (note the T character separator
                            between the calendar date and the time. </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element minOccurs="1" maxOccurs="unbounded" name="Copyright">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> The copyright for this file that is generated by the creator
                            of the distribution. If a derivative work is generated from an existing distribution, then
                            the existing copyright must be maintained, and additional copyrights may be appended to the
                            end of this element. It may also be the primary copyright for all code provided in the
                            Distribution Package. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:simpleContent>
                            <xs:extension base="xs:string">
                                <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"/>
                            </xs:extension>
                        </xs:simpleContent>
                    </xs:complexType>
                    
                </xs:element>
                <xs:element minOccurs="1" maxOccurs="unbounded" name="License">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> A license that describes any restrictions on the use of this
                            distribution. If a derivative work is allowed by the original license and a derivative work
                            is generated from an existing distribution, then the existing license must be maintained,
                            and additional licenses may be appended to the end of this element. It may also be the
                            primary license for all code provided in the distribution file. Alternatively, this may
                            point to a filename that contains the License. The file (included in the content zip file)
                            will be stored in the same location as the distribution package's .pkg file.
                        </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:simpleContent>
                            <xs:extension base="xs:string">
                                <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"/>
                            </xs:extension>
                        </xs:simpleContent>
                    </xs:complexType>
                </xs:element>
                <xs:element minOccurs="1" maxOccurs="unbounded" name="Abstract">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> A one line description of the Distribution Package.
                        </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:simpleContent>
                            <xs:extension base="xs:normalizedString">
                                <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"/>
                            </xs:extension>
                        </xs:simpleContent>
                    </xs:complexType>
                </xs:element>
                <xs:element minOccurs="0" maxOccurs="unbounded" name="Description">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> A complete description of the Distribution Package. This
                            description may include the release name of the file, the version of the file, and a
                            complete description of the file contents and/or features including a description of the
                            updates since the previous file release. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:simpleContent>
                            <xs:extension base="xs:string">
                                <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"/>
                            </xs:extension>
                        </xs:simpleContent>
                    </xs:complexType>
                </xs:element>
                <xs:element minOccurs="0" maxOccurs="1" name="Signature" type="Md5Sum">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> The packaging utilities will use this MD5 sum value of the
                            included ZIP file containing files and/or code. If this element is not present, then
                            installation tools should assume that the content is correct, or that other methods may be
                            needed to verify content. </xs:documentation>
                    </xs:annotation>
                </xs:element>
                <xs:element minOccurs="1" maxOccurs="1" name="XmlSpecification" type="xs:decimal" default="1.1">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This version of this XML Schema is 1.1 </xs:documentation>
                        <xs:documentation xml:lang="en-us"> Changes to 1.1 from 1.0 </xs:documentation>
                        <xs:documentation xml:lang="en-us"> #1 Updated to present date and new version which is
                            important to reflect the present state of the matter</xs:documentation>
                        <xs:documentation xml:lang="en-us"> #2 Added definition/enumeration of UNDEFIND type 2 is
                            important since there is a large body of legacy code for which the GUID’s and other
                            code/data objects were not decorated with their usage. This document will allow for
                            importing today’s source artifacts and producing decorations using the ‘Undefined’ versus
                            having an error</xs:documentation>
                        <xs:documentation xml:lang="en-us">#3 Allow for inclusion of ARM and future architecture
                            types</xs:documentation>
                    </xs:annotation>
                </xs:element>
            </xs:sequence>
            <xs:attribute name="ReadOnly" type="xs:boolean" default="false" use="optional">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> If set to true, all content within this Distribution Package
                        should NOT be modified. The default permits modification of all content. </xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="RePackage" type="xs:boolean" default="false" use="optional">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> If set to true, then the content can be repackaged into another
                        distribution package. The default prohibits repackaging the Distribution content.
                    </xs:documentation>
                </xs:annotation>
            </xs:attribute>
        </xs:complexType>
    </xs:element>
    <!-- End of the DistributionHeader element. -->

    <xs:element name="PackageSurfaceArea">
        <xs:annotation>
            <xs:documentation xml:lang="en-us"> A package is a collection of related objects - Includes, Libraries and
                Modules. </xs:documentation>
            <xs:documentation xml:lang="en-us"> Each package is uniquely identified by it's GUID and Version number.
                Backward compatible releases of a package need only change the version number, while non-backward
                compatible changes require the GUID to change (resetting the version number to 1.0 is optional.)
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>

                <xs:element minOccurs="1" maxOccurs="1" name="Header">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="1" name="Name">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is the User Interface Name for this
                                        package. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:normalizedString">
                                            <xs:attribute name="BaseName" type="xs:NMTOKEN" use="required">
                                                <xs:annotation>
                                                    <xs:documentation xml:lang="en-us"> This is a single word BaseName
                                                        of the package. This BaseName can be used by tools as a keyword
                                                        and for directory/file creation. </xs:documentation>
                                                </xs:annotation>
                                            </xs:attribute>
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                            <xs:element minOccurs="1" maxOccurs="1" name="GUID">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This GUID and the Version attribute uniquely
                                        identify a given package. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="RegistryFormatGuid">
                                            <xs:attribute name="Version" type="xs:decimal" use="required">
                                                <xs:annotation>
                                                    <xs:documentation xml:lang="en-us"> This value, along with the GUID,
                                                        is used to uniquely identify this object. </xs:documentation>
                                                    <xs:documentation xml:lang="en-us"> Backward compatible changes must
                                                        make sure this number is incremented from the most recent
                                                        version. Non-backward compatible changes require a new GUID, and
                                                        the version can be reset. </xs:documentation>
                                                </xs:annotation>
                                            </xs:attribute>
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="unbounded" name="Copyright">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> If the package requires a different copyright
                                        than the distribution package, this element can list one or more copyright
                                        lines. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:string">
                                            <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"
                                            />
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>

                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="unbounded" name="License">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> If the package requires licenses that are
                                        different from the distribution package license, this element can contain one or
                                        more license text paragraphs (or license filenames.) </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:string">
                                            <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"
                                            />
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>

                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="unbounded" name="Abstract">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> A one line description of this package.
                                    </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:normalizedString">
                                            <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"
                                            />
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="unbounded" name="Description">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> A complete description of a package. This
                                        description may include the release name of the package, the version of the
                                        package, and a complete description of the package contents and/or features
                                        including a description of the updates since the previous package’s release.
                                    </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:string">
                                            <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"
                                            />
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                            <xs:element minOccurs="1" maxOccurs="1" name="PackagePath" type="xs:anyURI">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This element is the location (in the ZIP file)
                                        for the root directory of a package. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PackageSurfaceArea Header element.  -->

                <xs:element minOccurs="0" maxOccurs="1" name="ClonedFrom">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> The term cloned is used here to indicate that this package
                            as been copied and modified to a completely different package. An example might be for a new
                            generation of chipsets that have few or no elements in common with the original.
                        </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="1" name="GUID">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This GUID and the Version attribute uniquely
                                        identify the Package that this Package was copied from. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="RegistryFormatGuid">
                                            <xs:attribute name="Version" type="xs:decimal" use="required">
                                                <xs:annotation>
                                                    <xs:documentation xml:lang="en-us"> This value, along with the GUID,
                                                        is used to uniquely identify the package that this package was
                                                        cloned from. </xs:documentation>
                                                </xs:annotation>
                                            </xs:attribute>
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PackageSurfaceArea ClonedFrom element.  -->

                <xs:element minOccurs="0" maxOccurs="1" name="LibraryClassDeclarations">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> Library Classes are public interfaces that can be used by
                            modules. One or more library instances can implement a library class, however only one
                            library instance can be linked to an individual module. This provides the platform
                            integrator with the flexibility of choosing one library instance's implementation over a
                            different library instance. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="LibraryClass">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="HeaderFile" type="xs:anyURI">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> The header file provides definitions
                                                    and function prototypes for a library class. Modules can be coded
                                                    against these functions, using the definitions in this header,
                                                    without concerning themselves about the libraries' implementation
                                                    details. This is a PackagePath relative path and filename for the
                                                    include file. </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element minOccurs="0" maxOccurs="1" name="RecommendedInstance">
                                            <xs:complexType>
                                                <xs:sequence>
                                                    <xs:element minOccurs="1" maxOccurs="1" name="GUID">
                                                        <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> This GUID and the
                                                            Version attribute uniquely identify the Recommended Library
                                                            Instance. </xs:documentation>
                                                        </xs:annotation>
                                                        <xs:complexType>
                                                            <xs:simpleContent>
                                                            <xs:extension base="RegistryFormatGuid">
                                                            <xs:attribute name="Version" type="xs:decimal"
                                                            use="optional">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> This value, along with
                                                            the GUID, is used to uniquely identify this object. If this
                                                            value is not specified, then any version of the library
                                                            instance is recommended. </xs:documentation>
                                                            </xs:annotation>
                                                            </xs:attribute>
                                                            </xs:extension>
                                                            </xs:simpleContent>
                                                        </xs:complexType>
                                                    </xs:element>
                                                </xs:sequence>
                                            </xs:complexType>
                                        </xs:element>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                    <xs:attribute name="Keyword" type="xs:NCName" use="required">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="en-us"> The single word name of the Library
                                                Class that module developers will use to identify a library class
                                                dependency. </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                    <xs:attributeGroup ref="SupportedArchMod"/>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PackageSurfaceArea LibraryClassDeclarations element.  -->

                <xs:element minOccurs="0" maxOccurs="1" name="IndustryStandardIncludes">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This section is used to list header files for industry
                            standards not under the auspices of UEFI.org. For example, headers that contain definitions
                            and data structures for the USB specifications. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="IndustryStandardHeader">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="HeaderFile" type="xs:anyURI">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> The package relative path and
                                                    filename (in the content zip file) of the industry standard include
                                                    file. </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PackageSurfaceArea IndustryStdIncludes element.  -->

                <xs:element minOccurs="0" maxOccurs="1" name="PackageIncludes">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> All top level header files that are included by a package
                            that are not listed above. They cannot be:</xs:documentation>
                        <xs:documentation xml:lang="en-us"> 1) Local to a module (module specific.) </xs:documentation>
                        <xs:documentation xml:lang="en-us"> 2) An industry standard header. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> 3) A library class header. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="PackageHeader">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="HeaderFile">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> This is the Package relative path
                                                    and filename location within the content ZIP file.
                                                </xs:documentation>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:simpleContent>
                                                    <xs:extension base="xs:anyURI">
                                                        <xs:attributeGroup ref="SupportedArchMod"/>
                                                    </xs:extension>
                                                </xs:simpleContent>
                                            </xs:complexType>
                                        </xs:element>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PackageSurfaceArea PackageIncluces element.  -->

                <xs:element minOccurs="0" maxOccurs="1" name="Modules">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element ref="ModuleSurfaceArea" minOccurs="1" maxOccurs="unbounded">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This section lists the Module Surface Area for
                                        all modules provided with this package. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PackageSurfaceArea Modules element.  -->

                <xs:element minOccurs="0" maxOccurs="1" name="GuidDeclarations">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This section defines the mapping of GUID C names to GUID
                            values as a Registry Format GUID. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> Modules that use these GUIDs must specify their dependency
                            on this package. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="Entry">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> Individual GUID Declarations </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="CName" type="xs:NCName"/>
                                        <xs:element minOccurs="1" maxOccurs="1" name="GuidValue"
                                            type="RegistryFormatGuid"/>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                    <xs:attribute name="UiName" type="xs:normalizedString" use="optional"/>
                                    <xs:attribute name="GuidTypes" type="GuidListType" use="optional"/>
                                    <xs:attributeGroup ref="SupportedArchMod"/>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PackageSurfaceArea GuidDeclarations element.  -->

                <xs:element minOccurs="0" maxOccurs="1" name="ProtocolDeclarations">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This section defines the mapping of Protocol C names to GUID
                            values as a Registry Format GUID. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> Modules that use these Protocols must specify their
                            dependency on this package. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="Entry">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> Individual Protocol Declarations
                                    </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="CName" type="xs:NCName"/>
                                        <xs:element minOccurs="1" maxOccurs="1" name="GuidValue"
                                            type="RegistryFormatGuid"/>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                    <xs:attribute name="UiName" type="xs:normalizedString" use="optional"/>
                                    <xs:attributeGroup ref="SupportedArchMod"/>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PackageSurfaceArea ProtocolDeclarations element.  -->

                <xs:element minOccurs="0" maxOccurs="1" name="PpiDeclarations">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This section defines the mapping of Ppi C names to GUID
                            values as a Registry Format GUID. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> Modules that use these Ppis must specify their dependency on
                            this package. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="Entry">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> Individual PPI Declarations </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="CName" type="xs:NCName"/>
                                        <xs:element minOccurs="1" maxOccurs="1" name="GuidValue"
                                            type="RegistryFormatGuid"/>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                    <xs:attribute name="UiName" type="xs:normalizedString" use="optional"/>
                                    <xs:attributeGroup ref="SupportedArchMod"/>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PackageSurfaceArea PpiDeclarations element.  -->

                <xs:element minOccurs="0" maxOccurs="1" name="PcdDeclarations">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This section is used to declare platform configuration knobs
                            that are defined by this package. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> Modules that use these PCD values must specify their
                            dependency on this package. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="PcdEntry">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="TokenSpaceGuidCname"
                                            type="xs:NCName">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> Specifies the C name of the Token
                                                    Space GUID of which this PCD Entry is a member. This C name should
                                                    also be listed in the GUIDs section, (specified above,) where the C
                                                    name is assigned to a GUID value. </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element minOccurs="1" maxOccurs="1" name="Token">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> Specifies the 32-bit token value for
                                                    this PCD Entry. The Token number must be unique to the Token Space
                                                    that declares the PCD. </xs:documentation>
                                                <xs:documentation xml:lang="en-us"> The minLength of 3 is required to
                                                    handle the "0x" prefix to the hex number. </xs:documentation>
                                            </xs:annotation>
                                            <xs:simpleType>
                                                <xs:restriction base="HexNumber">
                                                    <xs:minLength value="3"/>
                                                    <xs:maxLength value="10"/>
                                                </xs:restriction>
                                            </xs:simpleType>
                                        </xs:element>
                                        <xs:element minOccurs="1" maxOccurs="1" name="CName" type="xs:NCName"/>
                                        <xs:element minOccurs="1" maxOccurs="1" name="DatumType" type="PcdDatumTypes">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> A string that contains the data type
                                                    of this PCD Entry. PCD data types are restricted to the following
                                                    set:UINT8, UINT16, UINT32, UINT64, VOID*, BOOLEAN.
                                                </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element minOccurs="1" maxOccurs="1" name="ValidUsage" type="PcdItemListType">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> A string that contains one or more
                                                    PCD Item types separated by spaces. The PCD Item types are
                                                    restricted to FeaturePcd, FixedPcd, PatchPcd, Pcd and/or PcdEx.
                                                </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element minOccurs="1" maxOccurs="1" name="DefaultValue"
                                            type="xs:normalizedString"/>
                                        <xs:element minOccurs="0" maxOccurs="1" name="MaxDatumSize">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> This is a recommended maximum data
                                                    size for VOID* data types, the actual value should be defined by the
                                                    Platform Integrator. It is not required for the other data types. </xs:documentation>
                                                <xs:documentation xml:lang="en-us"> The minLength of 3 is required to
                                                    handle the "0x" prefix to the hex number. </xs:documentation>

                                            </xs:annotation>
                                            <xs:simpleType>
                                                <xs:restriction base="HexNumber">
                                                    <xs:minLength value="3"/>
                                                </xs:restriction>
                                            </xs:simpleType>
                                        </xs:element>
                                        <xs:element minOccurs="0" maxOccurs="unbounded" name="Prompt">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-US"> This entry contains prompt
                                                    information, that may used by tools to assist platform integrators
                                                    with choosing the correct values </xs:documentation>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:simpleContent>
                                                    <xs:extension base="xs:string">
                                                        <xs:attribute name="Lang" type="xs:language" default="en-us"
                                                            use="optional"/>
                                                    </xs:extension>
                                                </xs:simpleContent>
                                            </xs:complexType>
                                        </xs:element>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>

                                        <xs:element minOccurs="0" maxOccurs="unbounded" name="PcdError">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> Valid Error messages that may be
                                                    implemented in a module for the PCD Entry. Only One Error Number per
                                                    PcdError, (multiple ErrorMessage entries are permitted) and multiple
                                                    PcdError elements are permitted. </xs:documentation>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:sequence>
                                                    <xs:choice minOccurs="1" maxOccurs="1">
                                                        <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> One of the following
                                                            types of comparisons, which must be able to evaluate to
                                                            either true or false. </xs:documentation>
                                                        </xs:annotation>
                                                        <xs:element minOccurs="0" maxOccurs="1" name="ValidValueList">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> The PCD Value must be
                                                            space separated list of values. Values are restricted to the
                                                            data type of this PCD. </xs:documentation>
                                                            </xs:annotation>
                                                            <xs:complexType>
                                                            <xs:simpleContent>
                                                            <xs:extension base="xs:normalizedString">
                                                            <xs:attribute name="Lang" type="xs:language" use="optional"
                                                            />
                                                            </xs:extension>
                                                            </xs:simpleContent>
                                                            </xs:complexType>
                                                        </xs:element>
                                                        <xs:element minOccurs="0" maxOccurs="1" name="ValidValueRange"
                                                            type="xs:normalizedString">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> The PCD must be within a
                                                            specifed range of numeric values. Restricted to C style
                                                            Relational, Equality and Logicial Operators and parenthesis
                                                            are valid. Only the CName for this PCD is permitted in the
                                                            ValidValueRange expression. All other values must be
                                                            numeric.</xs:documentation>
                                                            <xs:documentation xml:lang="en-us"> LValue (op RValue)+
                                                            </xs:documentation>
                                                            </xs:annotation>
                                                        </xs:element>
                                                        <xs:element minOccurs="0" maxOccurs="1" name="Expression"
                                                            type="xs:normalizedString">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> A in-fix logical
                                                            expression using C style logical operators.
                                                            </xs:documentation>
                                                            </xs:annotation>
                                                        </xs:element>
                                                    </xs:choice>
                                                    <xs:element minOccurs="1" maxOccurs="1" name="ErrorNumber">
                                                        <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> A hexadecimal value for
                                                            the error message as defined by specifications. </xs:documentation>
                                                            <xs:documentation xml:lang="en-us"> The minLength of 3 is
                                                            required to handle the "0x" prefix to the hex number. </xs:documentation>

                                                        </xs:annotation>
                                                        <xs:simpleType>
                                                            <xs:restriction base="HexNumber">
                                                            <xs:minLength value="3"/>
                                                            </xs:restriction>
                                                        </xs:simpleType>
                                                    </xs:element>
                                                    <xs:element minOccurs="1" maxOccurs="unbounded" name="ErrorMessage">
                                                        <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> This string should be
                                                            defined by specifications. There are pre-defined error
                                                            number ranges in the UEFI/PI specificaiton.
                                                            </xs:documentation>
                                                        </xs:annotation>
                                                        <xs:complexType>
                                                            <xs:simpleContent>
                                                            <xs:extension base="xs:string">
                                                            <xs:attribute name="Lang" type="xs:language" default="en-us"
                                                            use="optional"/>
                                                            </xs:extension>
                                                            </xs:simpleContent>
                                                        </xs:complexType>
                                                    </xs:element>
                                                </xs:sequence>
                                            </xs:complexType>
                                        </xs:element>
                                    </xs:sequence>
                                    <xs:attributeGroup ref="SupportedArchMod"/>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PackageSurfaceArea PcdDeclarations element.  -->

                <xs:element minOccurs="0" maxOccurs="1" name="PcdRelationshipChecks">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This section is used to describe any PCD interdependencies
                            or relationships. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="PcdCheck" type="xs:normalizedString">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This entry must used
                                        TokenSpaceGuidCName.PcdCname for every named PCD. Restricted to Relational,
                                        Equality and Logical Operators (NOT, AND, OR, GT, GE, EQ, LE, LT and XOR) and
                                        parenthesis are valid. Only the TokenSpaceGuidCName.PcdCname us permitted to
                                        name PCDs in the expression. All other values must be numeric. </xs:documentation>
                                    <xs:documentation xml:lang="en-us"> LValue (op RValue)+ </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>

                <xs:element minOccurs="0" maxOccurs="unbounded" name="MiscellaneousFiles">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This section contains files that are not part of the code
                            distributed with this package. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="0" maxOccurs="1" name="Copyright" type="xs:string">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> Only required if different from the Package
                                        Copyright. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="1" name="License" type="xs:string">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> Only required if different from the Package
                                        License. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="1" name="Abstract" type="xs:string">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> A one line description of this section's
                                        content. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="unbounded" name="Description" type="xs:string">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> A complete description of the files in this
                                        section. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="Filename">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is the PackagePath relative path and
                                        filename location within the ZIP file. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:anyURI">
                                            <xs:attribute name="Executable" type="xs:boolean" default="false"
                                                use="optional">
                                                <xs:annotation>
                                                    <xs:documentation xml:lang="en-us"> If true, used by installation
                                                        tools to ensure that a file that must be executable has the
                                                        correct properties to permit execution. </xs:documentation>
                                                </xs:annotation>
                                            </xs:attribute>
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>

                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PackageSurfaceArea Misc element.  -->

                <xs:element minOccurs="0" maxOccurs="unbounded" name="UserExtensions">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This section is used for any processing instructions that
                            may be custom to the content provided by this package that are common to this package.
                        </xs:documentation>
                    </xs:annotation>
                    <xs:complexType mixed="true">
                        <xs:sequence>
                            <xs:any processContents="lax" minOccurs="0" maxOccurs="1"/>
                        </xs:sequence>
                        <xs:attribute name="UserId" type="xs:NCName" use="required">
                            <xs:annotation>
                                <xs:documentation xml:lang="en-us"> This is a single word identifier for grouping
                                    similar content that does not fit into previously defined sections or other sections
                                    of the Distribution. </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="Identifier" type="xs:string" use="required">
                            <xs:annotation>
                                <xs:documentation xml:lang="en-us"> This can be used to differentiate multiple sections
                                    with a grouping. </xs:documentation>
                                <xs:documentation xml:lang="en-us"> For example, a PRE_PROCESS Identifier might indicate
                                    specific steps and tools required before processing module content, while a
                                    different UserExtensions section with a POST_PROCESS Identifier might describe steps
                                    that need to be executed after operations on the modules in this package.
                                </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:anyAttribute processContents="lax"/>
                    </xs:complexType>
                </xs:element>
                <!-- End of PackageSurfaceArea UserExtensions element. -->

            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- End of the PackageSurfaceArea element. -->

    <xs:element name="ModuleSurfaceArea">
        <xs:annotation>
            <xs:documentation xml:lang="en-us"> Each module is uniquely identified by it's GUID and Version number.
                Backward compatible releases of a module need only change the version number, while non-backward
                compatible changes require the GUID to change (resetting the version number to 1.0 is optional.)
            </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>

                <xs:element minOccurs="1" maxOccurs="1" name="Header">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="1" name="Name">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is the User Interface Name for this Module.
                                    </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:normalizedString">
                                            <xs:attribute name="BaseName" type="xs:NMTOKEN" use="required">
                                                <xs:annotation>
                                                    <xs:documentation xml:lang="en-us"> This is a single word BaseName
                                                        that will be used to create a module meta-data file. </xs:documentation>
                                                    <xs:documentation xml:lang="en-us"> This name should also be used to
                                                        create output file names and directories. </xs:documentation>
                                                </xs:annotation>
                                            </xs:attribute>
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                            <xs:element minOccurs="1" maxOccurs="1" name="GUID">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This GUID and the Version attribute uniquely
                                        identify a given Module. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="RegistryFormatGuid">
                                            <xs:attribute name="Version" type="xs:decimal" use="required">
                                                <xs:annotation>
                                                    <xs:documentation xml:lang="en-us"> This value, along with the GUID,
                                                        is used to uniquely identify this object. </xs:documentation>
                                                    <xs:documentation xml:lang="en-us"> Backward compatible changes must
                                                        make sure this number is incremented from the most recent
                                                        version. Non-backward compatible changes require a new GUID, and
                                                        the version can be reset. </xs:documentation>
                                                </xs:annotation>
                                            </xs:attribute>
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="unbounded" name="Copyright">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is only required if the Copyright is
                                        different from either the Package or Distribution copyright. Multiple copyright
                                        lines are permitted within this section. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:string">
                                            <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"
                                            />
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="unbounded" name="License">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is only required if the license is
                                        different from either the Package or Distribution license. Multiple licenses are
                                        permitted within this section. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:string">
                                            <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"
                                            />
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="unbounded" name="Abstract">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> A brief text description of the module.
                                    </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:normalizedString">
                                            <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"
                                            />
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="unbounded" name="Description">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> A complete description of the module contents
                                        and/or features including a description of the updates since the previous module
                                        release. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:string">
                                            <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"
                                            />
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of Module Surface Area Header Section -->

                <xs:element minOccurs="0" maxOccurs="1" name="ModuleProperties">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> List general information about a module, including the
                            Supported Architectures, this module's type, specifications the module is coded against, and
                            other informational content. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="1" name="ModuleType" type="ModuleTypes">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> One of the Enumerated module types that limit
                                        the use of a module. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element minOccurs="1" maxOccurs="1" name="Path" type="xs:anyURI">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> For stand-alone modules that are NOT part of any
                                        package, this is the path to the root of the module as listed in the ZIP file.
                                        For modules included in a package, this is the location, relative to the root of
                                        the package (PackagePath) this module belongs to. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="1" name="PcdIsDriver">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This element is only required for the PEIM that
                                        produces the PCD PPI or the DXE Driver that produces the PCD Protocol.
                                    </xs:documentation>
                                </xs:annotation>
                                <xs:simpleType>
                                    <xs:restriction base="xs:NCName">
                                        <xs:enumeration value="PEI_PCD_DRIVER"/>
                                        <xs:enumeration value="DXE_PCD_DRIVER"/>
                                    </xs:restriction>
                                </xs:simpleType>
                            </xs:element>

                            <xs:element minOccurs="0" maxOccurs="1" name="UefiSpecificationVersion" type="xs:decimal"/>

                            <xs:element minOccurs="0" maxOccurs="1" name="PiSpecificationVersion" type="xs:decimal"/>

                            <xs:element minOccurs="0" maxOccurs="unbounded" name="Specification">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is a list of other specifications that this
                                        module is written against. These entries can be used in #define statements
                                        (depending on the build system implementation, they may be autogenerated.)
                                    </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:NCName">
                                            <xs:attribute name="Version" type="xs:decimal" use="required"/>
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>

                            <xs:element minOccurs="0" maxOccurs="unbounded" name="BootMode">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> Different firmware execution paths may be taken
                                        based on a given state of the hardware, firmware, or through feature settings. A
                                        BootMode may be declared (PRODUCES) or discovered (CONSUMES) based on these
                                        states and feature settings. If the usage is UNDEFINE, it implies that a Boot
                                        Mode is used, but the package creator does not know how it is used. The
                                        supported boot modes map to the PI specification Boot Modes. The boot modes
                                        listed with Recovery are to indicate that the BootMode is valid during a
                                        recovery boot. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:sequence minOccurs="0">
                                        <xs:element minOccurs="1" maxOccurs="1" name="SupportedBootModes">
                                            <xs:simpleType>
                                                <xs:list>
                                                    <xs:simpleType>
                                                        <xs:restriction base="xs:NCName">
                                                            <xs:enumeration value="FULL"/>
                                                            <xs:enumeration value="MINIMAL"/>
                                                            <xs:enumeration value="NO_CHANGE"/>
                                                            <xs:enumeration value="DIAGNOSTICS"/>
                                                            <xs:enumeration value="DEFAULT"/>
                                                            <xs:enumeration value="S2_RESUME"/>
                                                            <xs:enumeration value="S3_RESUME"/>
                                                            <xs:enumeration value="S4_RESUME"/>
                                                            <xs:enumeration value="S5_RESUME"/>
                                                            <xs:enumeration value="FLASH_UPDATE"/>
                                                            <xs:enumeration value="RECOVERY_FULL"/>
                                                            <xs:enumeration value="RECOVERY_MINIMAL"/>
                                                            <xs:enumeration value="RECOVERY_NO_CHANGE"/>
                                                            <xs:enumeration value="RECOVERY_DIAGNOSTICS"/>
                                                            <xs:enumeration value="RECOVERY_DEFAULT"/>
                                                            <xs:enumeration value="RECOVERY_S2_RESUME"/>
                                                            <xs:enumeration value="RECOVERY_S3_RESUME"/>
                                                            <xs:enumeration value="RECOVERY_S4_RESUME"/>
                                                            <xs:enumeration value="RECOVERY_S5_RESUME"/>
                                                            <xs:enumeration value="RECOVERY_FLASH_UPDATE"/>
                                                            <xs:enumeration value="UNDEFINED"/>
                                                        </xs:restriction>
                                                    </xs:simpleType>
                                                </xs:list>
                                            </xs:simpleType>
                                        </xs:element>

                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                    <xs:attribute name="Usage" use="required">
                                        <xs:simpleType>
                                            <xs:restriction base="xs:NCName">
                                                <xs:enumeration value="CONSUMES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The module always supports
                                                            the given boot modes. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="SOMETIMES_CONSUMES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The module may support a
                                                            given mode on some execution paths. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="PRODUCES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The module will change the
                                                            boot mode. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="SOMETIME_PRODUCES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The module will change the
                                                            boot mode on some exection paths. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="UNDEFINED">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The package creator does not
                                                            know how the boot mode is used. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
                                    <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
                                </xs:complexType>
                            </xs:element>

                            <xs:element minOccurs="0" maxOccurs="unbounded" name="Event" nillable="true">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> The functions that make up the Event, Timer, and
                                        Task Priority Services are used during preboot to create, close, signal, and
                                        wait for events; to set timers; and to raise and restore task priority levels as
                                        defined in the UEFI specification. GUIDed events should be listed in the Guids
                                        section. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                    <xs:attribute name="Usage" use="required">
                                        <xs:simpleType>
                                            <xs:restriction base="xs:NCName">
                                                <xs:enumeration value="CONSUMES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The module will register a
                                                            notification function and calls the function when it is
                                                            signaled. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="SOMETIMES_CONSUMES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The module will register a
                                                            notification function and calls the function when it is
                                                            signaled on some execution paths. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="PRODUCES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The module will signal all
                                                            events in an event group. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="SOMETIMES_PRODUCES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The module will signal all
                                                            events in an event group under some execution paths.
                                                        </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="UNDEFINED">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The package creator does not
                                                            know how an event is used. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute name="EventType" use="required">
                                        <xs:simpleType>
                                            <xs:restriction base="xs:NCName">
                                                <xs:enumeration value="EVENT_TYPE_PERIODIC_TIMER"/>
                                                <xs:enumeration value="EVENT_TYPE_RELATIVE_TIMER"/>
                                                <xs:enumeration value="UNDEFINED"/>
                                            </xs:restriction>
                                        </xs:simpleType>


                                    </xs:attribute>
                                    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
                                    <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
                                </xs:complexType>
                            </xs:element>

                            <xs:element minOccurs="0" maxOccurs="unbounded" name="HOB" nillable="false">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is a list of non-GUIDed Hand Off Blocks
                                        (HOBs) produced or consumed by this module. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                    <xs:attribute name="HobType" use="required">
                                        <xs:simpleType>
                                            <xs:restriction base="xs:NCName">
                                                <xs:enumeration value="PHIT"/>
                                                <xs:enumeration value="MEMORY_ALLOCATION"/>
                                                <xs:enumeration value="RESOURCE_DESCRIPTOR"/>
                                                <xs:enumeration value="FIRMWARE_VOLUME"/>
                                                <xs:enumeration value="LOAD_PEIM"/>
                                                <xs:enumeration value="UNDEFINED"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute name="Usage" use="required">
                                        <xs:simpleType>
                                            <xs:restriction base="xs:NCName">
                                                <xs:enumeration value="CONSUMES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> A HOB must be present in the
                                                            system. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="SOMETIMES_CONSUMES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> If present, the HOB will be
                                                            used. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="PRODUCES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The HOB is always produced
                                                            by the module. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="SOMETIMES_PRODUCES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The HOB may be produced by
                                                            the module under some execution paths. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="UNDEFINED">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The package creator knows
                                                            that a HOB is used, but does not know how it is used.
                                                        </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
                                    <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
                                </xs:complexType>
                            </xs:element>

                        </xs:sequence>
                        <xs:attributeGroup ref="SupportedArchMod"/>
                    </xs:complexType>
                </xs:element>
                <!-- End of ModuleProperties Section -->

                <xs:element minOccurs="0" maxOccurs="1" name="ClonedFrom">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This section may be included for Modules that are copied
                            from a different module. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="1" name="GUID">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This GUID and the Version attribute uniquely
                                        identify the Module that this Module was copied from. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="RegistryFormatGuid">
                                            <xs:attribute name="Version" type="xs:decimal" use="required">
                                                <xs:annotation>
                                                    <xs:documentation xml:lang="en-us"> This value, along with the GUID,
                                                        is used to uniquely identify this object. </xs:documentation>
                                                </xs:annotation>
                                            </xs:attribute>
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!--  End of ClonedFrom Section. -->

                <xs:element minOccurs="0" maxOccurs="1" name="LibraryClassDefinitions">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> A list of the different Library Classes consumed by a
                            driver, core and/or application module, or produced by a Library module. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="LibraryClass">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="Keyword" type="xs:NCName">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us "> Used by tools to identify different
                                                    instances of libraries that provide the library class. This keyword
                                                    identifies the library class this module needs to be linked against.
                                                </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element minOccurs="0" maxOccurs="1" name="RecommendedInstance">
                                            <xs:complexType>
                                                <xs:all>
                                                    <xs:element minOccurs="1" maxOccurs="1" name="GUID">
                                                        <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> This GUID and the
                                                            Version attribute uniquely identify the recommended Library
                                                            Instance for this module . </xs:documentation>
                                                        </xs:annotation>
                                                        <xs:complexType>
                                                            <xs:simpleContent>
                                                            <xs:extension base="RegistryFormatGuid">
                                                            <xs:attribute name="Version" type="xs:decimal"
                                                            use="optional">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> This value, along with
                                                            the GUID, is used to uniquely identify this object.
                                                            </xs:documentation>
                                                            </xs:annotation>
                                                            </xs:attribute>
                                                            </xs:extension>
                                                            </xs:simpleContent>
                                                        </xs:complexType>
                                                    </xs:element>
                                                </xs:all>
                                            </xs:complexType>
                                        </xs:element>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                    <xs:attribute name="Usage" use="required">
                                        <xs:simpleType>
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> Library instances can provide code
                                                    for a library class, or may require other library instances
                                                    themselves. Since different execution paths in a library (or module)
                                                    may need different library classes based on some setting, library
                                                    classes may not alway be required. </xs:documentation>
                                            </xs:annotation>
                                            <xs:restriction base="xs:NCName">
                                                <xs:enumeration value="PRODUCES"/>
                                                <xs:enumeration value="CONSUMES"/>
                                                <xs:enumeration value="SOMETIMES_CONSUMES"/>
                                                <xs:enumeration value="UNDEFINED"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>

                                    <xs:attributeGroup ref="SupportedArchMod"/>
                                    <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional">
                                        <xs:annotation>
                                            <xs:documentation xml:lang="en-us"> A FeatureFlag attribute must evaluate to
                                                either true or false - it may be a fixed value of true or false, a C
                                                name or an in-fix expression. </xs:documentation>
                                        </xs:annotation>
                                    </xs:attribute>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of LibraryClassDefinitions Section -->

                <xs:element minOccurs="0" maxOccurs="1" name="SourceFiles">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="Filename">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is the module relative
                                        (ModuleProperties.Path) path and filename location within the ZIP file.
                                    </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:anyURI">
                                            <xs:attribute name="Family" type="FamilyTypes" use="optional">
                                                <xs:annotation>
                                                    <xs:documentation xml:lang="en-us"> The Family attribute is used to
                                                        restrict usage to a given family of compilers, such as GCC or
                                                        MSFT. Since not all code processing tools use the same syntax,
                                                        especially for assembly, this field can be used to identify
                                                        different syntax. </xs:documentation>
                                                </xs:annotation>
                                            </xs:attribute>
                                            <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
                                            <xs:attribute name="SupModList" type="ModuleListType" use="optional"/>
                                            <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                            <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of SourceFiles Section -->

                <xs:element minOccurs="0" maxOccurs="1" name="BinaryFiles">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="BinaryFile">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="unbounded" name="Filename">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> This is the module relative
                                                    (ModuleProperties.Path) path and filename location within the ZIP
                                                    file. </xs:documentation>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:simpleContent>
                                                    <xs:extension base="xs:anyURI">
                                                        <xs:attribute name="FileType" use="optional">
                                                            <xs:simpleType>
                                                            <xs:restriction base="xs:NCName">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> Binary file distribution
                                                            is limited to UEFI/PI FFS leaf section file types.
                                                            </xs:documentation>
                                                            </xs:annotation>
                                                            <xs:enumeration value="GUID"/>
                                                            <xs:enumeration value="FREEFORM"/>
                                                            <xs:enumeration value="UEFI_IMAGE"/>
                                                            <xs:enumeration value="PE32">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> A UEFI/PI FFS Leaf
                                                            section file type, not a raw PE32 file. </xs:documentation>
                                                            </xs:annotation>
                                                            </xs:enumeration>
                                                            <xs:enumeration value="PIC"/>
                                                            <xs:enumeration value="PEI_DEPEX"/>
                                                            <xs:enumeration value="DXE_DEPEX"/>
                                                            <xs:enumeration value="SMM_DEPEX"/>
                                                            <xs:enumeration value="COMPAT16"/>
                                                            <xs:enumeration value="DISPOSABLE"/>
                                                            <xs:enumeration value="TE"/>
                                                            <xs:enumeration value="VER"/>
                                                            <xs:enumeration value="UI"/>
                                                            <xs:enumeration value="BIN"/>
                                                            <xs:enumeration value="FV"/>
                                                            </xs:restriction>
                                                            </xs:simpleType>
                                                        </xs:attribute>
                                                        <xs:attribute name="GUID" use="optional"
                                                            type="RegistryFormatGuid"/>
                                                        <xs:attribute name="SupArchList" type="ArchListType"
                                                            use="optional"/>
                                                        <xs:attribute name="SupModList" type="ModuleListType"
                                                            use="optional"/>
                                                        <xs:attribute name="FeatureFlag" type="xs:normalizedString"
                                                            use="optional"/>
                                                    </xs:extension>
                                                </xs:simpleContent>
                                            </xs:complexType>
                                        </xs:element>
                                        <xs:element minOccurs="0" maxOccurs="unbounded" name="AsBuilt">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> This section contains information
                                                    about how the module was coded, such as Compiler Tools, Flags, PCDs
                                                    (only PatchPcd and/or PcdEx) and Library Class Instances used to
                                                    build the binary. </xs:documentation>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:sequence>

                                                    <xs:element minOccurs="0" maxOccurs="unbounded" name="PatchPcdValue">
                                                        <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> The element is the
                                                            Patchable PCD Value that was used during the build.
                                                            </xs:documentation>
                                                        </xs:annotation>
                                                        <xs:complexType>
                                                            <xs:sequence>
                                                            <xs:element minOccurs="1" maxOccurs="1"
                                                            name="TokenSpaceGuidValue" type="RegistryFormatGuid"/>
                                                            <xs:element minOccurs="1" maxOccurs="1" name="PcdCName"
                                                            type="xs:NCName"/>
                                                            <xs:element minOccurs="1" maxOccurs="1" name="Token">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> The minLength of 3 is
                                                            required to handle the "0x" prefix to the hex number.
                                                            </xs:documentation>
                                                            </xs:annotation>
                                                            <xs:simpleType>
                                                            <xs:restriction base="HexNumber">
                                                            <xs:minLength value="3"/>
                                                            <xs:maxLength value="10"/>
                                                            </xs:restriction>
                                                            </xs:simpleType>
                                                            </xs:element>
                                                            <xs:element minOccurs="1" maxOccurs="1" name="DatumType"
                                                            type="PcdDatumTypes"/>
                                                            <xs:element minOccurs="0" maxOccurs="1" name="MaxDatumSize">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> This field is required
                                                            if the Pcd Datum Type is VOID* </xs:documentation>
                                                            <xs:documentation xml:lang="en-us"> The minLength of 3 is
                                                            required to handle the "0x" prefix to the hex number.
                                                            </xs:documentation>
                                                            </xs:annotation>
                                                            <xs:simpleType>
                                                            <xs:restriction base="HexNumber">
                                                            <xs:minLength value="3"/>
                                                            </xs:restriction>
                                                            </xs:simpleType>
                                                            </xs:element>
                                                            <xs:element minOccurs="1" maxOccurs="1" name="Value"
                                                            type="xs:normalizedString"/>
                                                            <xs:element minOccurs="1" maxOccurs="1" name="Offset">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> The minLength of 3 is
                                                            required to handle the "0x" prefix to the hex number.
                                                            </xs:documentation>
                                                            </xs:annotation>
                                                            <xs:simpleType>
                                                            <xs:restriction base="HexNumber">
                                                            <xs:minLength value="3"/>
                                                            </xs:restriction>
                                                            </xs:simpleType>
                                                            </xs:element>
                                                            <xs:element ref="HelpText" minOccurs="0"
                                                            maxOccurs="unbounded"/>
                                                            <xs:element minOccurs="0" maxOccurs="unbounded"
                                                            name="PcdError">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> Error information
                                                            implemented by the module. </xs:documentation>
                                                            </xs:annotation>
                                                            <xs:complexType>
                                                            <xs:sequence>
                                                            <xs:element minOccurs="1" maxOccurs="1" name="ErrorNumber">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> The minLength of 3 is
                                                            required to handle the "0x" prefix to the hex number.
                                                            </xs:documentation>
                                                            </xs:annotation>
                                                            <xs:simpleType>
                                                            <xs:restriction base="HexNumber">
                                                            <xs:minLength value="3"/>
                                                            </xs:restriction>
                                                            </xs:simpleType>
                                                            </xs:element>
                                                            <xs:element minOccurs="0" maxOccurs="unbounded"
                                                            name="ErrorMessage">
                                                            <xs:complexType>
                                                            <xs:simpleContent>
                                                            <xs:extension base="xs:string">
                                                            <xs:attribute name="Lang" type="xs:language" default="en-us"
                                                            use="optional"/>
                                                            </xs:extension>
                                                            </xs:simpleContent>
                                                            </xs:complexType>
                                                            </xs:element>
                                                            </xs:sequence>
                                                            </xs:complexType>
                                                            </xs:element>
                                                            </xs:sequence>
                                                        </xs:complexType>
                                                    </xs:element>

                                                    <xs:element minOccurs="0" maxOccurs="unbounded" name="PcdExValue">
                                                        <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> The element is the
                                                            DynamicEx PCD Value that was used during the build.
                                                            </xs:documentation>
                                                        </xs:annotation>
                                                        <xs:complexType>
                                                            <xs:sequence>
                                                            <xs:element minOccurs="1" maxOccurs="1"
                                                            name="TokenSpaceGuidValue" type="RegistryFormatGuid"/>
                                                            <xs:element minOccurs="1" maxOccurs="1" name="Token">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> The minLength of 3 is
                                                            required to handle the "0x" prefix to the hex number.
                                                            </xs:documentation>
                                                            </xs:annotation>
                                                            <xs:simpleType>
                                                            <xs:restriction base="HexNumber">
                                                            <xs:minLength value="3"/>
                                                            <xs:maxLength value="10"/>
                                                            </xs:restriction>
                                                            </xs:simpleType>
                                                            </xs:element>
                                                            <xs:element minOccurs="1" maxOccurs="1" name="DatumType"
                                                            type="PcdDatumTypes"/>
                                                            <xs:element minOccurs="0" maxOccurs="1" name="MaxDatumSize">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> This field is required
                                                            if the Pcd Datum Type is VOID* </xs:documentation>
                                                            </xs:annotation>
                                                            <xs:simpleType>
                                                            <xs:restriction base="HexNumber">
                                                            <xs:minLength value="3"/>
                                                            </xs:restriction>
                                                            </xs:simpleType>
                                                            </xs:element>
                                                            <xs:element minOccurs="1" maxOccurs="1" name="Value"
                                                            type="xs:normalizedString"/>
                                                            <xs:element ref="HelpText" minOccurs="0"
                                                            maxOccurs="unbounded"/>
                                                            <xs:element minOccurs="0" maxOccurs="unbounded"
                                                            name="PcdError">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> Error information
                                                            implemented by the module. </xs:documentation>
                                                            </xs:annotation>
                                                            <xs:complexType>
                                                            <xs:sequence>
                                                            <xs:element minOccurs="1" maxOccurs="1" name="ErrorNumber">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> The minLength of 3 is
                                                            required to handle the "0x" prefix to the hex number.
                                                            </xs:documentation>
                                                            </xs:annotation>
                                                            <xs:simpleType>
                                                            <xs:restriction base="HexNumber">
                                                            <xs:minLength value="3"/>
                                                            </xs:restriction>
                                                            </xs:simpleType>
                                                            </xs:element>
                                                            <xs:element minOccurs="0" maxOccurs="unbounded"
                                                            name="ErrorMessage">
                                                            <xs:complexType>
                                                            <xs:simpleContent>
                                                            <xs:extension base="xs:string">
                                                            <xs:attribute name="Lang" type="xs:language" default="en-us"
                                                            use="optional"/>
                                                            </xs:extension>
                                                            </xs:simpleContent>
                                                            </xs:complexType>
                                                            </xs:element>
                                                            </xs:sequence>
                                                            </xs:complexType>
                                                            </xs:element>
                                                            </xs:sequence>
                                                        </xs:complexType>
                                                    </xs:element>

                                                    <xs:element minOccurs="0" maxOccurs="1" name="LibraryInstances">
                                                        <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> This is the actual
                                                            library instance that was used to link against the module.
                                                            </xs:documentation>
                                                        </xs:annotation>
                                                        <xs:complexType>
                                                            <xs:sequence>
                                                            <xs:element minOccurs="1" maxOccurs="unbounded" name="GUID">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> This GUID and the
                                                            Version attribute uniquely identify the actual Library
                                                            Instance linked in this module. </xs:documentation>
                                                            </xs:annotation>
                                                            <xs:complexType>
                                                            <xs:simpleContent>
                                                            <xs:extension base="RegistryFormatGuid">
                                                            <xs:attribute name="Version" type="xs:decimal"
                                                            use="required">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> This value, along with
                                                            the GUID, is used to uniquely identify this object.
                                                            </xs:documentation>
                                                            </xs:annotation>
                                                            </xs:attribute>
                                                            </xs:extension>
                                                            </xs:simpleContent>
                                                            </xs:complexType>
                                                            </xs:element>
                                                            </xs:sequence>
                                                        </xs:complexType>
                                                    </xs:element>

                                                    <xs:element minOccurs="0" maxOccurs="unbounded" name="BuildFlags">
                                                        <xs:complexType mixed="true">
                                                            <xs:simpleContent>
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> Any description of OS,
                                                            Tool, and flags for the individual tool can go in this
                                                            section. </xs:documentation>
                                                            </xs:annotation>
                                                            <xs:extension base="xs:string">
                                                            <xs:anyAttribute processContents="lax"/>
                                                            </xs:extension>
                                                            </xs:simpleContent>
                                                        </xs:complexType>
                                                    </xs:element>
                                                </xs:sequence>
                                            </xs:complexType>
                                        </xs:element>
                                        <!-- End of AsBuilt -->
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                </xs:complexType>
                            </xs:element>

                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of BinaryFiles Section -->

                <xs:element minOccurs="0" maxOccurs="1" name="PackageDependencies">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="Package">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="0" maxOccurs="unbounded" name="Description">
                                            <xs:complexType>
                                                <xs:simpleContent>
                                                    <xs:extension base="xs:string">
                                                        <xs:attribute name="Lang" type="xs:language" default="en-us"
                                                            use="optional"/>
                                                    </xs:extension>
                                                </xs:simpleContent>
                                            </xs:complexType>
                                        </xs:element>
                                        <xs:element minOccurs="1" maxOccurs="1" name="GUID">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> This GUID and the Version attribute
                                                    uniquely identify Package that this Module depends on.
                                                </xs:documentation>
                                            </xs:annotation>
                                            <xs:complexType>
                                                <xs:simpleContent>
                                                    <xs:extension base="RegistryFormatGuid">
                                                        <xs:attribute name="Version" type="xs:decimal" use="optional">
                                                            <xs:annotation>
                                                            <xs:documentation xml:lang="en-us"> This value, along with
                                                            the GUID, is used to uniquely identify this object. If the
                                                            version attribute is not specified, the most recent version
                                                            of the package can be used. </xs:documentation>
                                                            </xs:annotation>
                                                        </xs:attribute>
                                                    </xs:extension>
                                                </xs:simpleContent>
                                            </xs:complexType>
                                        </xs:element>
                                    </xs:sequence>
                                    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
                                    <xs:attribute name="SupModList" type="ModuleListType" use="optional"/>
                                    <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PackageDependencies -->

                <xs:element minOccurs="0" maxOccurs="1" name="Guids">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="GuidCName">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="CName" type="xs:NCName"/>
                                        <xs:element minOccurs="0" maxOccurs="1" name="VariableName"
                                            type="xs:normalizedString">
                                            <xs:annotation>
                                                <xs:documentation xml:lang="en-us"> Only valid for Variable GUID types. </xs:documentation>
                                                <xs:documentation> This can be either a Hex Array or C string in unicode
                                                    format: L"string" Data. </xs:documentation>
                                            </xs:annotation>
                                        </xs:element>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                    <xs:attribute name="Usage" use="required">
                                        <xs:simpleType>
                                            <xs:restriction base="xs:NCName">
                                                <xs:enumeration value="CONSUMES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us">The module does not install
                                                            the GUID, and the GUID must be present for the module to
                                                            execute. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="SOMETIMES_CONSUMES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The module does not install
                                                            the GUID, however, the GUID will be used if it is present.
                                                        </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="PRODUCES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The module always installs
                                                            the GUID. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="SOMETIMES_PRODUCES">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The Module will install the
                                                            GUID under certain execution paths. </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                                <xs:enumeration value="UNDEFINED">
                                                    <xs:annotation>
                                                        <xs:documentation xml:lang="en-us"> The package creator knows
                                                            that a GUID is used, but does not know how it is used.
                                                        </xs:documentation>
                                                    </xs:annotation>
                                                </xs:enumeration>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute name="GuidType" type="GuidListType" use="required"/>
                                    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
                                    <xs:attribute name="SupModList" type="ModuleListType" use="optional"/>
                                    <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of Guids Section -->

                <xs:element minOccurs="0" maxOccurs="1" name="Protocols">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> A listing of protocols required or produced by this module.
                        </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="Protocol" nillable="true">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="CName" type="xs:NCName"/>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                    <xs:attribute name="Usage" use="required">
                                        <xs:simpleType>
                                            <xs:restriction base="xs:NCName">
                                                <xs:enumeration value="PRODUCES"/>
                                                <xs:enumeration value="SOMETIMES_PRODUCES"/>
                                                <xs:enumeration value="CONSUMES"/>
                                                <xs:enumeration value="SOMETIMES_CONSUMES"/>
                                                <xs:enumeration value="TO_START"/>
                                                <xs:enumeration value="BY_START"/>
                                                <xs:enumeration value="UNDEFINED"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute name="Notify" type="xs:boolean" use="optional"/>
                                    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
                                    <xs:attribute name="SupModList" type="ModuleListType" use="optional"/>
                                    <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of Protocols Section -->

                <xs:element minOccurs="0" maxOccurs="1" name="PPIs">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> A listing of PPIs required or produced by this module.
                        </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="Ppi" nillable="true">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="CName" type="xs:NCName"/>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                    <xs:attribute name="Usage" use="required">
                                        <xs:simpleType>
                                            <xs:restriction base="xs:NCName">
                                                <xs:enumeration value="PRODUCES"/>
                                                <xs:enumeration value="SOMETIMES_PRODUCES"/>
                                                <xs:enumeration value="CONSUMES"/>
                                                <xs:enumeration value="SOMETIMES_CONSUMES"/>
                                                <xs:enumeration value="UNDEFINED"/>
                                            </xs:restriction>
                                        </xs:simpleType>
                                    </xs:attribute>
                                    <xs:attribute name="Notify" type="xs:boolean" use="optional"/>
                                    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
                                    <xs:attribute name="SupModList" type="ModuleListType" use="optional"/>
                                    <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PPIs Section -->

                <xs:element minOccurs="0" maxOccurs="1" name="Externs">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> These elements specify additional information about the
                            module. This area may be used by tools to generate code. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="Extern">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:choice minOccurs="1">
                                            <xs:sequence>
                                                <xs:element minOccurs="0" maxOccurs="1" name="EntryPoint"
                                                    type="xs:NCName"/>
                                                <xs:element minOccurs="0" maxOccurs="1" name="UnloadImage"
                                                    type="xs:NCName"/>
                                            </xs:sequence>
                                            <xs:sequence>
                                                <xs:element minOccurs="0" maxOccurs="1" name="Constructor"
                                                    type="xs:NCName"/>
                                                <xs:element minOccurs="0" maxOccurs="1" name="Destructor"
                                                    type="xs:NCName"/>
                                            </xs:sequence>
                                        </xs:choice>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="1"/>
                                    </xs:sequence>
                                    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
                                    <xs:attribute name="SupModList" type="ModuleListType" use="optional"/>
                                    <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of Externs Section -->

                <xs:element minOccurs="0" maxOccurs="1" name="PcdCoded">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This section describes how a platform is coded with respect
                            to the platform configuration knobs. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="PcdEntry">
                                <xs:complexType>
                                    <xs:sequence>
                                        <xs:element minOccurs="1" maxOccurs="1" name="CName" type="xs:NCName"/>
                                        <xs:element minOccurs="1" maxOccurs="1" name="TokenSpaceGuidCName"
                                            type="xs:NCName"/>
                                        <xs:element minOccurs="0" maxOccurs="1" name="DefaultValue"
                                            type="xs:normalizedString"/>
                                        <xs:element ref="HelpText" minOccurs="0" maxOccurs="unbounded"/>
                                    </xs:sequence>
                                    <xs:attribute name="PcdItemType" type="PcdItemTypes" use="required"/>
                                    <xs:attribute name="PcdUsage" use="required">
                                        <xs:simpleType>
                                            <xs:restriction base="xs:NCName">
                                                <xs:enumeration value="PRODUCES"/>
                                                <xs:enumeration value="SOMETIMES_PRODUCES"/>
                                                <xs:enumeration value="CONSUMES"/>
                                                <xs:enumeration value="SOMETIMES_CONSUMES"/>
                                                <xs:enumeration value="UNDEFINED"/>
                                            </xs:restriction>
                                        </xs:simpleType>


                                    </xs:attribute>
                                    <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
                                    <xs:attribute name="SupModList" type="ModuleListType" use="optional"/>
                                    <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of PcdCoded Section -->

                <xs:element minOccurs="0" maxOccurs="unbounded" name="PeiDepex">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This is the PEI dependency expression for a Dependency
                            Section. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="Expression" type="xs:string" minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> An in-fix expression, of C identifiers and TRUE,
                                        FALSE, AND, OR, NOT, BEFORE, and AFTER as well as parenthesis () in the in-fix
                                        notation. The operators are restricted to grammar defined in the PI
                                        specification. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element ref="HelpText" minOccurs="0" maxOccurs="1"/>
                        </xs:sequence>
                        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
                        <xs:attribute name="SupModList" type="ModuleListType" use="optional"/>
                        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
                    </xs:complexType>
                </xs:element>
                <!-- End of PeiDepex Section -->

                <xs:element minOccurs="0" maxOccurs="unbounded" name="DxeDepex">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This is the DXE dependency expression for a Dependency
                            Section. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="Expression" type=" xs:string " minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> An in-fix expression, of C identifiers and TRUE,
                                        FALSE, AND, OR, NOT, BEFORE, and AFTER as well as parenthesis () in the in-fix
                                        notation. The operators are restricted to grammar defined in the PI
                                        specification. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element ref="HelpText" minOccurs="0" maxOccurs="1"/>
                        </xs:sequence>
                        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
                        <xs:attribute name="SupModList" type="ModuleListType" use="optional"/>
                        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
                    </xs:complexType>
                </xs:element>
                <!-- End of DxeDepex Section -->

                <xs:element minOccurs="0" maxOccurs="unbounded" name="SmmDepex">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This is the SMM dependency expression for a Dependency
                            Section. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="Expression" type=" xs:string " minOccurs="1" maxOccurs="1">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> An in-fix expression, of C identifiers and TRUE,
                                        FALSE, AND, OR, NOT, BEFORE, and AFTER as well as parenthesis () in the in-fix
                                        notation. The operators are restricted to grammar defined in the PI
                                        specification. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element ref="HelpText" minOccurs="0" maxOccurs="1"/>
                        </xs:sequence>
                        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
                        <xs:attribute name="SupModList" type="ModuleListType" use="optional"/>
                        <xs:attribute name="FeatureFlag" type="xs:normalizedString" use="optional"/>
                    </xs:complexType>
                </xs:element>
                <!-- End of SmmDepex Section -->


                <xs:element minOccurs="0" maxOccurs="1" name="MiscellaneousFiles">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This section is used to provide comments and/or list
                            auxiliary files, such as pdb or map files. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="0" maxOccurs="unbounded" name="Description">
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:string">
                                            <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"
                                            />
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                            <xs:element minOccurs="1" maxOccurs="unbounded" name="Filename">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is the path and filename location within
                                        the ZIP file. </xs:documentation>
                                </xs:annotation>
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:anyURI">
                                            <xs:attribute name="Executable" type="xs:boolean" default="false"
                                                use="optional">
                                                <xs:annotation>
                                                    <xs:documentation xml:lang="en-us"> If true, used by installation
                                                        tools to ensure that a file that must be executable has the
                                                        correct properties to permit execution. </xs:documentation>
                                                </xs:annotation>
                                            </xs:attribute>
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <!-- End of Module Surface Area Misc Section -->

                <xs:element minOccurs="0" maxOccurs="unbounded" name="UserExtensions">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This section is used for any processing instructions that
                            may be custom to the content provided by the distribution that are common to module. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> The content is vendor specific. </xs:documentation>
                        <xs:documentation xml:lang="en-us"> The content can be plain text as well as any user-defined,
                            properly formatted XML structure. </xs:documentation>
                    </xs:annotation>
                    <xs:complexType mixed="true">
                        <xs:attribute name="UserId" type="xs:NCName" use="required">
                            <xs:annotation>
                                <xs:documentation xml:lang="en-us"> This is a single word identifier for grouping
                                    similar content. For example, ReferenceBuild might be used to identify non-PI
                                    compliant build steps, with two different UserExtensions sections, one with an
                                    Identifier of Prebuild, and another of PostBuild. Both UserExtensions sections would
                                    use the same UserId. </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:attribute name="Identifier" type="xs:string" use="required">
                            <xs:annotation>
                                <xs:documentation xml:lang="en-us"> This can be any string used to differentiate or
                                    identify this section from other UserExtensions sections. </xs:documentation>
                                <xs:documentation xml:lang="en-us"> For example, a PRE_PROCESS Identifier might indicate
                                    specific steps and tools required before processing module content, while a
                                    different UserExtensions section with a POST_PROCESS Identifier might describe steps
                                    that need to be executed after operations on this module. </xs:documentation>
                            </xs:annotation>
                        </xs:attribute>
                        <xs:anyAttribute processContents="lax"/>
                    </xs:complexType>
                </xs:element>
                <!-- End of Module Surface Area UserExtensions Section -->

            </xs:sequence>
            <xs:attribute name="BinaryModule" type="xs:boolean" default="false" use="optional">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This attribute is used when the binaries are distributed for
                        this module and no code generation from source files is required. If set, then the BinaryFiles
                        section should be used, and any files listed in the SourceFiles section do not have to be built.
                        Additionally, the AsBuilt section for each binary file must be included. </xs:documentation>
                </xs:annotation>
            </xs:attribute>
        </xs:complexType>

    </xs:element>
    <!-- End of the ModuleSurfaceArea element. -->

    <xs:element name="Tools">
        <xs:complexType>
            <xs:sequence>
                <xs:element minOccurs="0" maxOccurs="1" name="Header">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="1" maxOccurs="1" name="Name" type="xs:normalizedString">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us">This is the User Interface Name for this Tools
                                        Distribution.</xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="1" name="Copyright" type="xs:string">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is only required if the Copyright is
                                        different from the Distribution Package copyright. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="1" name="License" type="xs:string">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is only required if the License is
                                        different from the Distribution Package license. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="1" name="Abstract" type="xs:normalizedString">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is only required if the Abstract is
                                        different from the Distribution Package Abstract. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="1" name="Description" type="xs:string">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is only required if the Description is
                                        different from the Distribution Package Description. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element minOccurs="1" maxOccurs="unbounded" name="Filename">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This is the path and filename location within the ZIP file.
                        </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:simpleContent>
                            <xs:extension base="xs:anyURI">
                                <xs:attribute name="OS" type="SupportedOs" use="optional">
                                    <xs:annotation>
                                        <xs:documentation xml:lang="en-us"> This is required for tools that execute; it
                                            should not be used for configuration files. </xs:documentation>
                                    </xs:annotation>
                                </xs:attribute>
                                <xs:attribute name="Executable" type="xs:boolean" default="false" use="optional">
                                    <xs:annotation>
                                        <xs:documentation xml:lang="en-us"> If true, used by installation tools to
                                            ensure that a file that must be executable has the correct properties to
                                            permit execution. </xs:documentation>
                                    </xs:annotation>
                                </xs:attribute>
                            </xs:extension>
                        </xs:simpleContent>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- End of the Tools element. -->

    <xs:element name="MiscellaneousFiles">
        <xs:annotation>
            <xs:documentation xml:lang="en-us"> This section contains a list of files that are not part of the code
                distributed with modules, packages or tools. </xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element minOccurs="0" maxOccurs="1" name="Header">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element minOccurs="0" maxOccurs="1" name="Name" type="xs:normalizedString">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> The User interface name for this content.
                                    </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="1" name="Copyright" type="xs:string">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is only required if the Copyright is
                                        different from the Distribution Package Copyright. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="1" name="License" type="xs:string">
                                <xs:annotation>
                                    <xs:documentation xml:lang="en-us"> This is only required if the License is
                                        different from the Distribution Package License. </xs:documentation>
                                </xs:annotation>
                            </xs:element>
                            <xs:element minOccurs="0" maxOccurs="1" name="Abstract" type="xs:normalizedString"/>
                            <xs:element minOccurs="0" maxOccurs="unbounded" name="Description">
                                <xs:complexType>
                                    <xs:simpleContent>
                                        <xs:extension base="xs:string">
                                            <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"
                                            />
                                        </xs:extension>
                                    </xs:simpleContent>
                                </xs:complexType>
                            </xs:element>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
                <xs:element minOccurs="0" maxOccurs="unbounded" name="Filename">
                    <xs:annotation>
                        <xs:documentation xml:lang="en-us"> This is the path and filename location within the ZIP file.
                        </xs:documentation>
                    </xs:annotation>
                    <xs:complexType>
                        <xs:simpleContent>
                            <xs:extension base="xs:anyURI">
                                <xs:attribute name="Executable" type="xs:boolean" default="false" use="optional">
                                    <xs:annotation>
                                        <xs:documentation xml:lang="en-us"> If true, used by installation tools to
                                            ensure that a file that must be executable has the correct properties to
                                            permit execution. </xs:documentation>
                                    </xs:annotation>
                                </xs:attribute>
                            </xs:extension>
                        </xs:simpleContent>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- End of the Misc element. -->

    <xs:element name="UserExtensions">
        <xs:complexType mixed="true">
            <xs:sequence>
                <xs:any processContents="lax" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
            <xs:attribute name="UserId" type="xs:NCName" use="required">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This is a single word identifier for grouping similar content.
                        For example, ReferenceBuild might be used to identify non-PI compliant build steps, with two
                        different UserExtensions sections, one with an Identifier of Prebuild, and another of PostBuild.
                        Both UserExtensions sections would use the same UserId. </xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:attribute name="Identifier" type="xs:string" use="optional">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This can be any string used to differentiate or identify this
                        section from other UserExtensions sections. </xs:documentation>
                    <xs:documentation xml:lang="en-us"> For example, a PRE_PROCESS Identifier might indicate specific
                        steps and tools required before processing distribution package content, while a different
                        UserExtensions section with a POST_PROCESS Identifier might describe steps that need to be
                        executed after operations on this content. </xs:documentation>
                </xs:annotation>
            </xs:attribute>
            <xs:anyAttribute processContents="lax"/>
        </xs:complexType>
    </xs:element>
    <!-- The following elsements are common definitions used with the ref attribute for elements. -->

    <xs:element name="HelpText">
        <xs:complexType>
            <xs:simpleContent>
                <xs:extension base="xs:string">
                    <xs:attribute name="Lang" type="xs:language" default="en-us" use="optional"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>

    <!-- The following attribute groups are used in various elements above. -->

    <xs:attributeGroup name="SupportedArchMod">
        <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
        <xs:attribute name="SupModList" type="ModuleListType" use="optional"/>
    </xs:attributeGroup>

    <!-- The following data types are used to restrict content. -->

    <xs:simpleType name="ArchListType">
        <xs:list itemType="ArchTypes"/>
    </xs:simpleType>

    <xs:simpleType name="ArchTypes">
        <xs:restriction base="xs:NCName">
            <xs:enumeration value="IA32"/>
            <xs:enumeration value="X64"/>
            <xs:enumeration value="IPF"/>
            <xs:enumeration value="EBC"/>
            <xs:enumeration value="ARM"/>
            <xs:pattern value="([A-Z])([a-zA-Z0-9])*">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> Any processor architecture not listed above. The Architecture
                        must be a target architecture of one or more compiler tool chains. </xs:documentation>
                </xs:annotation>
            </xs:pattern>
        </xs:restriction>
    </xs:simpleType>


    <xs:simpleType name="FamilyTypes">
        <xs:restriction base="xs:NCName">
            <xs:enumeration value="MSFT"/>
            <xs:enumeration value="GCC"/>
            <xs:pattern value="[A-Z][a-zA-Z0-9]*">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> Any other family of build utilities for which compiler tools
                        exist. </xs:documentation>
                </xs:annotation>
            </xs:pattern>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="GuidListType">
        <xs:list itemType="GuidTypes"/>
    </xs:simpleType>

    <xs:simpleType name="GuidTypes">
        <xs:restriction base="xs:NCName">
            <xs:enumeration value="Event"/>
            <xs:enumeration value="File"/>
            <xs:enumeration value="FV"/>
            <xs:enumeration value="GUID"/>
            <xs:enumeration value="Hii"/>
            <xs:enumeration value="HOB"/>
            <xs:enumeration value="SystemTable"/>
            <xs:enumeration value="TokenSpaceGuid"/>
            <xs:enumeration value="Variable"/>
            <xs:enumeration value="UNDEFINED"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="HexNumber">
        <xs:restriction base="xs:hexBinary">
            <xs:pattern value="0x([a-fA-F0-9])+"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="Md5Sum">
        <xs:restriction base="xs:normalizedString">
            <xs:pattern value="[a-zA-Z0-9]{32}"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="ModuleListType">
        <xs:list itemType="ModuleTypes"/>
    </xs:simpleType>

    <xs:simpleType name="ModuleTypes">
        <xs:annotation>
            <xs:documentation xml:lang="en-us"> The following module types are defined by specifications. </xs:documentation>
            <xs:documentation xml:lang="en-us"> Module types for components and libraries defined for this distribution
                mechanism. </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:NCName">
            <xs:enumeration value="BASE ">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> Use of this module is not restricted. </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DXE_CORE">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This module is only applicable to the DXE core.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DXE_DRIVER">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This module is only applicable to a DXE driver.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DXE_RUNTIME_DRIVER">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This module is only applicable to a DXE runtime driver.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DXE_SAL_DRIVER">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This module is only applicable to an IPF DXE runtime driver.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="DXE_SMM_DRIVER">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This module is only applicable to a DXE SMM driver.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PEI_CORE">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This module is only applicable to the PEI core.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PEIM">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This module is only valid for PEI modules. </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="SEC">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This module is only applicable to Security phase.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="UEFI_DRIVER">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This module is only valid for UEFI drivers. </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="UEFI_RUNTIME_DRIVER">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This module is only valid for UEFI runtime
                        drivers.</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="UEFI_APPLICATION">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This module is only valid for UEFI applications.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="SMM_CORE">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This module is only applicable to the SMM
                        core.</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="USER_DEFINED">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This content is restricted to a specific implementation.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="UNDEFINED">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This enumeration is for use in a list that where the package
                        creator does not know the what module types are supported by a module. </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:pattern value="([A-Z])([a-zA-Z0-9])*">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This pattern has been added for use in a module lists - for
                        future expansion. </xs:documentation>
                </xs:annotation>
            </xs:pattern>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="PcdDatumTypes">
        <xs:annotation>
            <xs:documentation xml:lang="en-us"> The following data types are defined by the PCD specification (or PCD
                section of the UEFI/PI specifications.) </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:normalizedString">
            <xs:enumeration value="UINT8"/>
            <xs:enumeration value="UINT16"/>
            <xs:enumeration value="UINT32"/>
            <xs:enumeration value="UINT64"/>
            <xs:enumeration value="BOOLEAN"/>
            <xs:enumeration value="VOID*"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="PcdItemListType">
        <xs:list itemType="PcdItemTypes"/>
    </xs:simpleType>

    <xs:simpleType name="PcdItemTypes">
        <xs:restriction base="xs:NCName">
            <xs:enumeration value="FeaturePcd">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> The Feature PCD is a binary, evaluating to either true or false.
                        This is used during build to include/exclude content. It can also be used during execution to
                        force execution paths within drivers, or to enable/disable features within a driver for a given
                        platform. </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="FixedPcd">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> The Fixed PCD is a #define value that is set at build time.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PatchPcd">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> The Patch PCD is a #define that is set at build time, and that
                        can be modified within a binary file. Additional information, such as the offset location of the
                        value, along with it's length may need to be provided.</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Pcd">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> This PCD type has an overloaded definition. Prior to build, the
                        platform integrator may choose to implement a PCD as Fixed, Patchable or a Dynamic PCD. If the
                        platform integrator choose to use the PCD as dynamic, then a PCD driver is required in the
                        platform (PEI/DXE/both) to track the PCD in some sort of 'database' of these items. For Dynamic
                        PCDs, the PcdGet* must pass in the token space guid and the token number to retrieve data
                        (PcdSet* also needs these values.) </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="PcdEx">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> The PCD can only be used as Dynamic, and the platform firmware
                        must contain a driver to maintain a 'database' of these items. For Dynamic PCDs, the PcdGet*
                        must pass in the token space guid and the token number to retrieve data (PcdSet* also needs
                        these values.) </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="RegistryFormatGuid">
        <xs:annotation>
            <xs:documentation xml:lang="en-us"> A GUID must contain five different Hexadecimal character sets that are
                separated by a dash (-) character. </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:pattern value="\s*[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\s*"/>
        </xs:restriction>
    </xs:simpleType>

    <xs:simpleType name="SupportedOs">
        <xs:annotation>
            <xs:documentation xml:lang="en-us"> The EDK II build system supports workstations running one of the
                following supported operating systems. This is the OS for the developer's workstation, not the target
                platform. </xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:enumeration value="Win32">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> For Windows 2003, Windows XP and Windows Vista.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Win64">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> For Windows 2003, Windows XP and Windows Vista.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Linux32"/>
            <xs:enumeration value="Linux64"/>
            <xs:enumeration value="OS/X32"/>
            <xs:enumeration value="OS/X64"/>
            <xs:enumeration value="GenericWin">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> Typically, this is used for Windows Batch files.
                    </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="GenericNix">
                <xs:annotation>
                    <xs:documentation xml:lang="en-us"> Typically use for shell scripts - valid for any Linux and Mac
                        OS/X. </xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:pattern value="[a-zA-Z]([a-zA-Z0-9])*"/>
        </xs:restriction>
    </xs:simpleType>

</xs:schema>