Sync the type of <VariableName> with the latest email send by Larry.
[mirror_edk2.git] / Tools / XMLSchema / FrameworkHeaders.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
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">
3 <!--
4 Filename: FrameworkHeaders.xsd
5
6 Copyright (c) 2006, Intel Corp.
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which may be found at http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 -->
15 <xs:include schemaLocation="FrameworkDataElements.xsd"/>
16 <xs:element name="FdbHeader">
17 <xs:annotation>
18 <xs:documentation xml:lang="en">This is the header for the Framework Package Database file.</xs:documentation>
19 </xs:annotation>
20 <xs:complexType>
21 <xs:sequence>
22 <xs:element minOccurs="1" maxOccurs="1" ref="DatabaseName"/>
23 <!-- Value fixed during initialization: FrameworkDatabase -->
24 <xs:choice minOccurs="1" maxOccurs="1">
25 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
26 <!-- Guid needs to be removed -->
27 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
28 <!-- GuidValue needs to be required -->
29 </xs:choice>
30 <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
31 <!-- Version is the version of this file -->
32 <xs:element minOccurs="0" maxOccurs="1" ref="Path"/>
33 <!-- Path needs to be removed -->
34 <xs:choice minOccurs="1" maxOccurs="1">
35 <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
36 <!-- Created needs to be removed -->
37 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
38 <!-- CreatedDate needs to be required -->
39 </xs:choice>
40 <xs:choice minOccurs="0">
41 <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
42 <!-- Updated needs to be removed -->
43 <xs:element minOccurs="0" maxOccurs="1" ref="UpdatedDate"/>
44 </xs:choice>
45 <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
46 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
47 <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
48 <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
49 <xs:element minOccurs="0" maxOccurs="1" ref="Specification"/>
50 <!-- Specificatoin needs to be required - FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00090000 -->
51 </xs:sequence>
52 </xs:complexType>
53 </xs:element>
54 <xs:element name="MbdHeader">
55 <!-- MbdHeader needs to be removed -->
56 <xs:annotation>
57 <xs:documentation xml:lang="en">DO NOT USE! This is the header for the Component Module Build Description (MBD) file. NOTE: The GUID may be different from the GUID in the MSA file, as the Guid is updated every time the file is changed, as the Guid may change if the contents of the file are changed.</xs:documentation>
58 </xs:annotation>
59 <xs:complexType>
60 <xs:sequence>
61 <xs:element minOccurs="1" maxOccurs="1" ref="BaseName"/>
62 <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>
63 <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
64 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
65 <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
66 <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
67 <xs:element minOccurs="0" maxOccurs="1" ref="Specification"/>
68 <xs:choice minOccurs="1" maxOccurs="1">
69 <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
70 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
71 </xs:choice>
72 <xs:choice minOccurs="1" maxOccurs="1">
73 <xs:element minOccurs="0" maxOccurs="1" ref="Modified"/>
74 <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
75 </xs:choice>
76 </xs:sequence>
77 </xs:complexType>
78 </xs:element>
79 <xs:element name="MbdLibHeader">
80 <!-- MbdLibHeader needs to be removed -->
81 <xs:annotation>
82 <xs:documentation xml:lang="en">DO NOT USE! This is the header for the Library Module Build Description (MBD) file. NOTE: The Guid may be different from the Guid in the MSA file, as the Guid may change when the contents of the file are changed..</xs:documentation>
83 </xs:annotation>
84 <xs:complexType>
85 <xs:sequence>
86 <xs:element minOccurs="1" maxOccurs="1" ref="BaseName"/>
87 <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>
88 <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
89 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
90 <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
91 <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
92 <xs:element minOccurs="0" maxOccurs="1" ref="Specification"/>
93 <xs:choice minOccurs="1" maxOccurs="1">
94 <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
95 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
96 </xs:choice>
97 <xs:choice minOccurs="1" maxOccurs="1">
98 <xs:element minOccurs="0" maxOccurs="1" ref="Modified"/>
99 <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
100 </xs:choice>
101 </xs:sequence>
102 </xs:complexType>
103 </xs:element>
104 <xs:element name="MsaHeader">
105 <xs:annotation>
106 <xs:documentation xml:lang="en">This is the Component Module Surface Area Description Header - a replacement for INF files. The GUID may change when the contents of the file are changed.</xs:documentation>
107 </xs:annotation>
108 <xs:complexType>
109 <xs:sequence>
110 <xs:choice>
111 <!-- BaseName needs to be removed -->
112 <xs:element minOccurs="0" maxOccurs="1" ref="BaseName"/>
113 <!-- ModuleName needs to be required -->
114 <xs:element minOccurs="0" maxOccurs="1" name="ModuleName" type="UiNameType"/>
115 </xs:choice>
116 <xs:element minOccurs="1" maxOccurs="1" ref="ModuleType"/>
117 <xs:element minOccurs="1" maxOccurs="1" ref="ComponentType"/>
118 <xs:choice>
119 <!-- Guid needs to be removed -->
120 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
121 <!-- GuidValue needs to be required -->
122 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
123 </xs:choice>
124 <!-- Version needs to be a decimal in final -->
125 <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
126 <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
127 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
128 <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
129 <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
130 <xs:choice minOccurs="1" maxOccurs="1">
131 <!-- Created needs to be removed -->
132 <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
133 <!-- CreatedDate needs to be removed -->
134 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
135 </xs:choice>
136 <xs:choice>
137 <!-- Updated needs to be removed -->
138 <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
139 <!-- ModifiedDate needs to be removed -->
140 <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
141 </xs:choice>
142 <xs:element minOccurs="0" maxOccurs="1" name="SupportedArchitectures">
143 <xs:simpleType>
144 <xs:list itemType="SupportedArchitectures"/>
145 </xs:simpleType>
146 </xs:element>
147 <xs:element default="false" minOccurs="0" name="BinaryModule" type="xs:boolean"/>
148 <!-- Specification needs to be required - FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052 -->
149 <xs:element minOccurs="0" maxOccurs="1" ref="Specification"/>
150 </xs:sequence>
151 </xs:complexType>
152 </xs:element>
153 <xs:element name="MsaLibHeader">
154 <!-- MsaLibHeader needs to be removed -->
155 <xs:annotation>
156 <xs:documentation xml:lang="en">DO NOT USE! This is the Library Module Surface Area Description Header - a replacement for INF files. The Guid may change when the contents of the file are changed.</xs:documentation>
157 </xs:annotation>
158 <xs:complexType>
159 <xs:sequence>
160 <xs:element minOccurs="1" maxOccurs="1" ref="BaseName"/>
161 <xs:element minOccurs="1" maxOccurs="1" ref="ModuleType"/>
162 <xs:element minOccurs="1" maxOccurs="1" ref="ComponentType"/>
163 <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>
164 <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
165 <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
166 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
167 <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
168 <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
169 <xs:choice minOccurs="1" maxOccurs="1">
170 <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
171 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
172 </xs:choice>
173 <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
174 <xs:element minOccurs="0" maxOccurs="1" ref="Specification"/>
175 </xs:sequence>
176 </xs:complexType>
177 </xs:element>
178 <xs:element name="PlatformHeader">
179 <xs:annotation>
180 <xs:documentation xml:lang="en">This head is for the Framework Platform Description file (FPD.)</xs:documentation>
181 </xs:annotation>
182 <xs:complexType>
183 <xs:sequence>
184 <xs:element minOccurs="1" maxOccurs="1" name="PlatformName" type="PlatformNamingConvention"/>
185 <xs:choice>
186 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
187 <!-- DO NOT USE Guid needs to be removed -->
188 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
189 <!-- GuidValue needs to be required -->
190 </xs:choice>
191 <!-- Version needs to be xs:decimal in final -->
192 <xs:element minOccurs="0" maxOccurs="1" ref="Version"/>
193 <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
194 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
195 <xs:element minOccurs="0" maxOccurs="1" ref="Copyright"/>
196 <xs:element minOccurs="0" maxOccurs="1" ref="License"/>
197 <xs:choice minOccurs="1" maxOccurs="1">
198 <!-- DO NOT USE Created needs to be removed -->
199 <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
200 <!-- DO NOT USE CreatedDate needs to be removed -->
201 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
202 </xs:choice>
203 <!-- DO NOT USE CreatedBy needs to be removed -->
204 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedBy"/>
205 <xs:choice>
206 <!-- DO NOT USE Updated needs to be removed -->
207 <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
208 <!-- DO NOT USE ModifiedDate needs to be removed -->
209 <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
210 </xs:choice>
211 <!-- DO NOT USE PackageType needs to be removed -->
212 <xs:element minOccurs="0" maxOccurs="1" ref="PackageType"/>
213 <!-- DO NOT USE BuildTarget needs to be removed -->
214 <xs:element minOccurs="0" maxOccurs="1" name="BuildTarget" type="BuildTargets"/>
215 <!-- Specification needs to be required - FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052 -->
216 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Specification"/>
217 </xs:sequence>
218 </xs:complexType>
219 </xs:element>
220 <xs:element name="SpdHeader">
221 <xs:annotation>
222 <xs:documentation xml:lang="en">This head is for the Surface Area Package Description file (SPD)</xs:documentation>
223 <xs:documentation xml:lang="en">The Guid MUST change when the contents of the file undergo MAJOR FUNCTIONALITY changes.</xs:documentation>
224 <xs:documentation xml:lang="en">The Version MUST change when the contents of the file undergo MINOR FUNCTIONALITY changes.</xs:documentation>
225 </xs:annotation>
226 <xs:complexType>
227 <xs:sequence>
228 <xs:element minOccurs="1" maxOccurs="1" name="PackageName" type="UiNameType"/>
229 <xs:choice minOccurs="1" maxOccurs="1">
230 <!-- DO NOT USE! Guid needs to be removed -->
231 <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
232 <!-- GuidValue needs to be required -->
233 <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
234 </xs:choice>
235 <xs:element minOccurs="1" maxOccurs="1" name="Version" type="xs:decimal"/>
236 <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
237 <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
238 <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
239 <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
240 <xs:choice minOccurs="1" maxOccurs="1">
241 <!-- Created needs to be removed -->
242 <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
243 <!-- CreatedDate needs to be removed -->
244 <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
245 </xs:choice>
246 <!-- E_Mail needs to be removed -->
247 <xs:element minOccurs="0" maxOccurs="1" ref="E-Mail"/>
248 <xs:choice minOccurs="0" maxOccurs="1">
249 <!-- Updated needs to be removed -->
250 <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
251 <!-- UpdatedDate needs to be removed -->
252 <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
253 </xs:choice>
254 <!-- URL needs to be removed -->
255 <xs:element minOccurs="0" maxOccurs="1" ref="URL"/>
256 <!-- PackageType needs to be removed -->
257 <xs:element minOccurs="1" maxOccurs="1" ref="PackageType"/>
258 <!-- ReadOnly and RePackage remain in final -->
259 <xs:element minOccurs="0" maxOccurs="1" ref="ReadOnly"/>
260 <xs:element minOccurs="0" maxOccurs="1" ref="RePackage"/>
261 <!-- Specification needs to be required - FRAMEWORK_BUILD_PACKAGING_SPECIFICATION 0x00000052 -->
262 <xs:element minOccurs="0" maxOccurs="unbounded" ref="Specification"/>
263 <!-- OutputDirectory needs to be removed -->
264 <xs:element minOccurs="0" maxOccurs="1" ref="OutputDirectory"/>
265 </xs:sequence>
266 </xs:complexType>
267 </xs:element>
268 </xs:schema>