]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/XMLSchema/SurfaceArea.xsd
merged the new changes in new schema, and corrected many inconsistencies in attribute...
[mirror_edk2.git] / Tools / XMLSchema / SurfaceArea.xsd
CommitLineData
878ddf1f 1<?xml version="1.0" encoding="UTF-8"?>\r
2<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://www.TianoCore.org/2006/Edk2.0" xmlns="http://www.TianoCore.org/2006/Edk2.0">\r
0850ca3b 3 <!--\r
878ddf1f 4 Filename: SurfaceArea.xsd\r
5 \r
6 Copyright (c) 2006, Intel Corp.\r
7 All rights reserved. This program and the accompanying materials\r
8 are licensed and made available under the terms and conditions of the BSD License\r
9 which may be found at http://opensource.org/licenses/bsd-license.php\r
10 \r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13 \r
14 -->\r
0850ca3b 15 <xs:include schemaLocation="FrameworkHeaders.xsd"/>\r
16 <xs:include schemaLocation="FrameworkDataElements.xsd"/>\r
17 <xs:include schemaLocation="FrameworkPlatformDataElements.xsd"/>\r
2558d455 18 <xs:annotation>\r
0850ca3b 19 <xs:documentation xml:lang="en">The following defines the valid format for the Framework Database (DB) File.</xs:documentation>\r
2558d455 20 </xs:annotation>\r
0850ca3b 21 <xs:element name="FrameworkDatabase">\r
22 <xs:complexType>\r
23 <xs:sequence>\r
24 <xs:element minOccurs="1" maxOccurs="1" ref="FdbHeader"/>\r
25 <xs:element minOccurs="1" maxOccurs="1" ref="PackageList"/>\r
c12c6c7d 26 <xs:element minOccurs="0" maxOccurs="1" ref="PlatformList"/>\r
f0147869 27 <xs:element minOccurs="1" maxOccurs="1" ref="FarList"/> \r
28 <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>\r
0850ca3b 29 </xs:sequence>\r
30 </xs:complexType>\r
31 </xs:element>\r
2558d455 32 <xs:annotation>\r
0850ca3b 33 <xs:documentation xml:lang="en">The following describes the valid format for the Framework Platform Description (FPD) File.</xs:documentation>\r
2558d455 34 </xs:annotation>\r
0850ca3b 35 <xs:element name="FrameworkPlatformDescription">\r
36 <xs:complexType>\r
37 <xs:sequence>\r
38 <xs:element minOccurs="1" maxOccurs="1" ref="PlatformHeader"/>\r
f0147869 39 <xs:element minOccurs="0" maxOccurs="1" ref="PlatformDefinitions"/> \r
c12c6c7d 40 <xs:element minOccurs="0" maxOccurs="1" ref="SkuInfo"/>\r
0850ca3b 41 <xs:element minOccurs="0" maxOccurs="1" ref="Flash"/>\r
42 <!-- DO NOT USE! removing TianoImage, use FrameworkModules instead. -->\r
43 <xs:element minOccurs="0" maxOccurs="1" ref="TianoImage"/>\r
44 <xs:element minOccurs="0" maxOccurs="1" ref="FrameworkModules"/>\r
45 <!-- DO NOT USE! removing PcdBuildDeclarations here, use PcdBuildDeclaratiion in ModuleSA instead. -->\r
46 <xs:element minOccurs="0" maxOccurs="1" ref="PcdBuildDeclarations"/>\r
e4ecc06e 47 <xs:choice minOccurs="0">\r
c12c6c7d 48 <!-- DO NOT USE! removing PcdDynamicBuildDeclarations here, use DynamicPcdBuildDefinitions in ModuleSA instead. -->\r
e4ecc06e 49 <xs:element minOccurs="0" maxOccurs="1" ref="PcdDynamicBuildDeclarations"/>\r
50 <xs:element minOccurs="0" maxOccurs="1" ref="DynamicPcdBuildDefinitions"/>\r
51 </xs:choice>\r
0850ca3b 52 <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>\r
e4ecc06e 53 <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>\r
0850ca3b 54 </xs:sequence>\r
55 </xs:complexType>\r
56 </xs:element>\r
2558d455 57 <xs:annotation>\r
0850ca3b 58 <xs:documentation xml:lang="en">DO NOT USE removing all Library Module files - PUT IN PLATFORM DESCRIPTION FILE, FPD</xs:documentation>\r
2558d455 59 </xs:annotation>\r
0850ca3b 60 <xs:element name="LibraryModuleBuildDescription">\r
61 <xs:complexType>\r
62 <xs:sequence>\r
63 <xs:element minOccurs="1" maxOccurs="1" ref="MbdLibHeader"/>\r
64 <xs:element minOccurs="0" maxOccurs="1" ref="SourceFiles"/>\r
65 <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>\r
66 <xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/>\r
67 <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>\r
68 <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>\r
69 <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>\r
70 <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>\r
71 <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>\r
72 <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>\r
73 <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>\r
74 <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>\r
75 <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>\r
76 <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>\r
77 <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>\r
78 <xs:element minOccurs="0" maxOccurs="1" ref="PCDs"/>\r
79 <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>\r
80 </xs:sequence>\r
81 </xs:complexType>\r
82 </xs:element>\r
2558d455 83 <xs:annotation>\r
0850ca3b 84 <xs:documentation xml:lang="en">DO NOT USE Removing all Library Module files - USE MODULE DESCRIPTION FILE, MSA</xs:documentation>\r
2558d455 85 </xs:annotation>\r
0850ca3b 86 <xs:element name="LibraryModuleSurfaceArea">\r
87 <xs:complexType>\r
88 <xs:sequence>\r
89 <xs:element minOccurs="1" maxOccurs="1" ref="MsaLibHeader"/>\r
90 <xs:element minOccurs="0" maxOccurs="1" ref="LibraryClassDefinitions"/>\r
91 <xs:element minOccurs="1" maxOccurs="1" ref="SourceFiles"/>\r
92 <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>\r
c12c6c7d 93 <xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/>\r
0850ca3b 94 <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>\r
95 <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>\r
96 <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>\r
97 <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>\r
98 <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>\r
99 <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>\r
100 <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>\r
101 <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>\r
102 <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>\r
103 <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>\r
104 <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>\r
105 <xs:element minOccurs="0" maxOccurs="1" ref="PCDs"/>\r
95945c76 106 <xs:element minOccurs="0" maxOccurs="1" ref="PcdCoded"/>\r
0850ca3b 107 <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>\r
108 </xs:sequence>\r
109 </xs:complexType>\r
110 </xs:element>\r
2558d455 111 <xs:annotation>\r
0850ca3b 112 <xs:documentation xml:lang="en">DO NOT USE Removing Build Description files - PUT IN PLATFORM DESCRIPTION FILE, FPD or RecommendedInstance Attribute in MSA LibraryClass</xs:documentation>\r
2558d455 113 </xs:annotation>\r
0850ca3b 114 <xs:element name="ModuleBuildDescription">\r
115 <xs:complexType>\r
116 <xs:sequence>\r
117 <xs:element minOccurs="1" maxOccurs="1" ref="MbdHeader"/>\r
118 <xs:element minOccurs="0" maxOccurs="1" ref="SourceFiles"/>\r
119 <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>\r
120 <xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/>\r
121 <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>\r
122 <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>\r
123 <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>\r
124 <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>\r
125 <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>\r
126 <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>\r
127 <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>\r
128 <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>\r
129 <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>\r
130 <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>\r
131 <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>\r
132 <xs:element minOccurs="0" maxOccurs="1" ref="PCDs"/>\r
133 <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>\r
134 </xs:sequence>\r
135 </xs:complexType>\r
136 </xs:element>\r
2558d455 137 <xs:annotation>\r
0850ca3b 138 <xs:documentation xml:lang="en">This is the Module Surface Area Description (MSA) that contains the list of the module's source files, library classes that can or must be used by the module, the Include Paths, Protocols and Ppi's that are either produced or consued.</xs:documentation>\r
2558d455 139 </xs:annotation>\r
0850ca3b 140 <xs:element name="ModuleSurfaceArea">\r
141 <xs:complexType>\r
142 <xs:sequence>\r
143 <xs:element minOccurs="1" maxOccurs="1" ref="MsaHeader"/>\r
f0147869 144 <xs:element minOccurs="0" maxOccurs="1" ref="ModuleDefinitions"/>\r
0850ca3b 145 <xs:element minOccurs="0" maxOccurs="1" ref="LibraryClassDefinitions"/>\r
146 <xs:element minOccurs="1" maxOccurs="1" ref="SourceFiles"/>\r
e4ecc06e 147 <xs:choice minOccurs="0">\r
5c5b4899 148 <!-- DO NOT USE! removing Includes, use PackageDependencies instead -->\r
149 <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>\r
150 <xs:element minOccurs="0" maxOccurs="1" ref="PackageDependencies"/>\r
e4ecc06e 151 </xs:choice>\r
0850ca3b 152 <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>\r
153 <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>\r
154 <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>\r
155 <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>\r
156 <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>\r
157 <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>\r
158 <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>\r
159 <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>\r
c12c6c7d 160 <!-- DO NOT USE! removing Formsets, use HiiPackages instead -->\r
0850ca3b 161 <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>\r
c12c6c7d 162 <xs:element minOccurs="0" maxOccurs="1" ref="HiiPackages"/>\r
0850ca3b 163 <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>\r
164 <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>\r
165 <xs:choice minOccurs="0">\r
c12c6c7d 166 <!-- DO NOT USE! removing PCDs, use PcdCoded instead -->\r
0850ca3b 167 <xs:element minOccurs="0" maxOccurs="1" ref="PCDs"/>\r
e4ecc06e 168 <xs:element minOccurs="0" maxOccurs="1" ref="PcdCoded"/>\r
0850ca3b 169 </xs:choice>\r
170 <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>\r
f0147869 171 <xs:element minOccurs="0" maxOccurs="1" ref="ModuleBuildOptions"/>\r
e4ecc06e 172 <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>\r
0850ca3b 173 </xs:sequence>\r
174 </xs:complexType>\r
175 </xs:element>\r
2558d455 176 <xs:annotation>\r
0850ca3b 177 <xs:documentation xml:lang="en">This describes the valid content for a Package Surface Area Description (SPD) file.</xs:documentation>\r
2558d455 178 </xs:annotation>\r
0850ca3b 179 <xs:element name="PackageSurfaceArea">\r
180 <xs:complexType>\r
181 <xs:sequence>\r
182 <xs:element minOccurs="1" maxOccurs="1" ref="SpdHeader"/>\r
f0147869 183 <xs:element minOccurs="0" maxOccurs="1" ref="PackageDefinitions"/> \r
0850ca3b 184 <xs:element minOccurs="0" maxOccurs="1" ref="LibraryClassDeclarations"/>\r
c12c6c7d 185 <xs:element minOccurs="0" maxOccurs="1" ref="IndustryStdIncludes"/>\r
5c5b4899 186 <!-- DO NOT USE removing THIS INSTANCE of PackageDependencies, this is moving to FDP installation process -->\r
0850ca3b 187 <xs:element minOccurs="0" maxOccurs="1" ref="PackageDependencies"/>\r
716b2371 188 <!-- DO NOT USE removing MsaFiles, use MsaFileList instead , do not wrap in choice, too many entries to convert all at once. -->\r
0850ca3b 189 <xs:element minOccurs="0" maxOccurs="1" ref="MsaFiles"/>\r
190 <xs:element minOccurs="0" maxOccurs="1" ref="PackageHeaders"/>\r
191 <xs:element minOccurs="0" maxOccurs="1" ref="GuidDeclarations"/>\r
192 <xs:element minOccurs="0" maxOccurs="1" ref="ProtocolDeclarations"/>\r
193 <xs:element minOccurs="0" maxOccurs="1" ref="PpiDeclarations"/>\r
194 <xs:choice minOccurs="0">\r
195 <!-- DO NOT USE! removing PcdDefinitions, use PcdDeclarations instead. -->\r
196 <xs:element minOccurs="0" maxOccurs="1" ref="PcdDefinitions"/>\r
197 <xs:element minOccurs="0" maxOccurs="1" ref="PcdDeclarations"/>\r
198 </xs:choice>\r
e4ecc06e 199 <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>\r
0850ca3b 200 </xs:sequence>\r
201 </xs:complexType>\r
202 </xs:element>\r
878ddf1f 203</xs:schema>\r