Sync the type of <VariableName> with the latest email send by Larry.
[mirror_edk2.git] / Tools / XMLSchema / SurfaceArea.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: SurfaceArea.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="FrameworkHeaders.xsd"/>
16 <xs:include schemaLocation="FrameworkDataElements.xsd"/>
17 <xs:include schemaLocation="FrameworkPlatformDataElements.xsd"/>
18 <xs:annotation>
19 <xs:documentation xml:lang="en">The following defines the valid format for the Framework Database (DB) File.</xs:documentation>
20 </xs:annotation>
21 <xs:element name="FrameworkDatabase">
22 <xs:complexType>
23 <xs:sequence>
24 <xs:element minOccurs="1" maxOccurs="1" ref="FdbHeader"/>
25 <xs:element minOccurs="1" maxOccurs="1" ref="PackageList"/>
26 <xs:element minOccurs="0" maxOccurs="1" ref="PlatformList"/>
27 </xs:sequence>
28 </xs:complexType>
29 </xs:element>
30 <xs:annotation>
31 <xs:documentation xml:lang="en">The following describes the valid format for the Framework Platform Description (FPD) File.</xs:documentation>
32 </xs:annotation>
33 <xs:element name="FrameworkPlatformDescription">
34 <xs:complexType>
35 <xs:sequence>
36 <xs:element minOccurs="1" maxOccurs="1" ref="PlatformHeader"/>
37 <xs:element minOccurs="0" maxOccurs="1" ref="SkuInfo"/>
38 <xs:element minOccurs="0" maxOccurs="1" ref="Flash"/>
39 <!-- DO NOT USE! removing TianoImage, use FrameworkModules instead. -->
40 <xs:element minOccurs="0" maxOccurs="1" ref="TianoImage"/>
41 <xs:element minOccurs="0" maxOccurs="1" ref="FrameworkModules"/>
42 <!-- DO NOT USE! removing PcdBuildDeclarations here, use PcdBuildDeclaratiion in ModuleSA instead. -->
43 <xs:element minOccurs="0" maxOccurs="1" ref="PcdBuildDeclarations"/>
44 <xs:choice minOccurs="0">
45 <!-- DO NOT USE! removing PcdDynamicBuildDeclarations here, use DynamicPcdBuildDefinitions in ModuleSA instead. -->
46 <xs:element minOccurs="0" maxOccurs="1" ref="PcdDynamicBuildDeclarations"/>
47 <xs:element minOccurs="0" maxOccurs="1" ref="DynamicPcdBuildDefinitions"/>
48 </xs:choice>
49 <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>
50 <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
51 </xs:sequence>
52 </xs:complexType>
53 </xs:element>
54 <xs:annotation>
55 <xs:documentation xml:lang="en">DO NOT USE removing all Library Module files - PUT IN PLATFORM DESCRIPTION FILE, FPD</xs:documentation>
56 </xs:annotation>
57 <xs:element name="LibraryModuleBuildDescription">
58 <xs:complexType>
59 <xs:sequence>
60 <xs:element minOccurs="1" maxOccurs="1" ref="MbdLibHeader"/>
61 <xs:element minOccurs="0" maxOccurs="1" ref="SourceFiles"/>
62 <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>
63 <xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/>
64 <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>
65 <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>
66 <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>
67 <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>
68 <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>
69 <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>
70 <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>
71 <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>
72 <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>
73 <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>
74 <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>
75 <xs:element minOccurs="0" maxOccurs="1" ref="PCDs"/>
76 <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>
77 </xs:sequence>
78 </xs:complexType>
79 </xs:element>
80 <xs:annotation>
81 <xs:documentation xml:lang="en">DO NOT USE Removing all Library Module files - USE MODULE DESCRIPTION FILE, MSA</xs:documentation>
82 </xs:annotation>
83 <xs:element name="LibraryModuleSurfaceArea">
84 <xs:complexType>
85 <xs:sequence>
86 <xs:element minOccurs="1" maxOccurs="1" ref="MsaLibHeader"/>
87 <xs:element minOccurs="0" maxOccurs="1" ref="LibraryClassDefinitions"/>
88 <xs:element minOccurs="1" maxOccurs="1" ref="SourceFiles"/>
89 <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>
90 <xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/>
91 <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>
92 <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>
93 <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>
94 <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>
95 <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>
96 <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>
97 <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>
98 <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>
99 <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>
100 <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>
101 <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>
102 <xs:element minOccurs="0" maxOccurs="1" ref="PCDs"/>
103 <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>
104 </xs:sequence>
105 </xs:complexType>
106 </xs:element>
107 <xs:annotation>
108 <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>
109 </xs:annotation>
110 <xs:element name="ModuleBuildDescription">
111 <xs:complexType>
112 <xs:sequence>
113 <xs:element minOccurs="1" maxOccurs="1" ref="MbdHeader"/>
114 <xs:element minOccurs="0" maxOccurs="1" ref="SourceFiles"/>
115 <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>
116 <xs:element minOccurs="0" maxOccurs="1" ref="Libraries"/>
117 <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>
118 <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>
119 <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>
120 <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>
121 <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>
122 <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>
123 <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>
124 <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>
125 <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>
126 <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>
127 <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>
128 <xs:element minOccurs="0" maxOccurs="1" ref="PCDs"/>
129 <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>
130 </xs:sequence>
131 </xs:complexType>
132 </xs:element>
133 <xs:annotation>
134 <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>
135 </xs:annotation>
136 <xs:element name="ModuleSurfaceArea">
137 <xs:complexType>
138 <xs:sequence>
139 <xs:element minOccurs="1" maxOccurs="1" ref="MsaHeader"/>
140 <xs:element minOccurs="0" maxOccurs="1" ref="LibraryClassDefinitions"/>
141 <xs:element minOccurs="1" maxOccurs="1" ref="SourceFiles"/>
142 <xs:choice minOccurs="0">
143 <!-- DO NOT USE! removing Includes, use PackageDependencies instead -->
144 <xs:element minOccurs="0" maxOccurs="1" ref="Includes"/>
145 <xs:element minOccurs="0" maxOccurs="1" ref="PackageDependencies"/>
146 </xs:choice>
147 <xs:element minOccurs="0" maxOccurs="1" ref="Protocols"/>
148 <xs:element minOccurs="0" maxOccurs="1" ref="Events"/>
149 <xs:element minOccurs="0" maxOccurs="1" ref="Hobs"/>
150 <xs:element minOccurs="0" maxOccurs="1" ref="PPIs"/>
151 <xs:element minOccurs="0" maxOccurs="1" ref="Variables"/>
152 <xs:element minOccurs="0" maxOccurs="1" ref="BootModes"/>
153 <xs:element minOccurs="0" maxOccurs="1" ref="SystemTables"/>
154 <xs:element minOccurs="0" maxOccurs="1" ref="DataHubs"/>
155 <!-- DO NOT USE! removing Formsets, use HiiPackages instead -->
156 <xs:element minOccurs="0" maxOccurs="1" ref="Formsets"/>
157 <xs:element minOccurs="0" maxOccurs="1" ref="HiiPackages"/>
158 <xs:element minOccurs="0" maxOccurs="1" ref="Guids"/>
159 <xs:element minOccurs="0" maxOccurs="1" ref="Externs"/>
160 <xs:choice minOccurs="0">
161 <!-- DO NOT USE! removing PCDs, use PcdCoded instead -->
162 <xs:element minOccurs="0" maxOccurs="1" ref="PCDs"/>
163 <xs:element minOccurs="0" maxOccurs="1" ref="PcdCoded"/>
164 </xs:choice>
165 <xs:element minOccurs="0" maxOccurs="1" ref="BuildOptions"/>
166 <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
167 </xs:sequence>
168 </xs:complexType>
169 </xs:element>
170 <xs:annotation>
171 <xs:documentation xml:lang="en">This describes the valid content for a Package Surface Area Description (SPD) file.</xs:documentation>
172 </xs:annotation>
173 <xs:element name="PackageSurfaceArea">
174 <xs:complexType>
175 <xs:sequence>
176 <xs:element minOccurs="1" maxOccurs="1" ref="SpdHeader"/>
177 <xs:element minOccurs="0" maxOccurs="1" ref="LibraryClassDeclarations"/>
178 <xs:element minOccurs="0" maxOccurs="1" ref="IndustryStdIncludes"/>
179 <!-- DO NOT USE removing THIS INSTANCE of PackageDependencies, this is moving to FDP installation process -->
180 <xs:element minOccurs="0" maxOccurs="1" ref="PackageDependencies"/>
181 <!-- DO NOT USE removing MsaFiles, use MsaFileList instead , do not wrap in choice, too many entries to convert all at once. -->
182 <xs:element minOccurs="0" maxOccurs="1" ref="MsaFiles"/>
183 <xs:element minOccurs="0" maxOccurs="1" ref="MsaFileList"/>
184 <xs:element minOccurs="0" maxOccurs="1" ref="PackageHeaders"/>
185 <xs:element minOccurs="0" maxOccurs="1" ref="GuidDeclarations"/>
186 <xs:element minOccurs="0" maxOccurs="1" ref="ProtocolDeclarations"/>
187 <xs:element minOccurs="0" maxOccurs="1" ref="PpiDeclarations"/>
188 <xs:choice minOccurs="0">
189 <!-- DO NOT USE! removing PcdDefinitions, use PcdDeclarations instead. -->
190 <xs:element minOccurs="0" maxOccurs="1" ref="PcdDefinitions"/>
191 <xs:element minOccurs="0" maxOccurs="1" ref="PcdDeclarations"/>
192 </xs:choice>
193 <xs:element minOccurs="0" maxOccurs="unbounded" ref="UserExtensions"/>
194 </xs:sequence>
195 </xs:complexType>
196 </xs:element>
197 </xs:schema>