summaryrefslogtreecommitdiff
path: root/Tools/XMLSchema/FrameworkHeaders.xsd
blob: a34d7a088f4a0f7a8aed3bdbd36d5f44c221063a (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
<?xml version="1.0" encoding="UTF-8"?>
<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">
    <!--
    Filename: FrameworkHeaders.xsd
    
    Copyright (c) 2006, Intel Corp.
    All rights reserved. This program and the accompanying materials
    are licensed and made available under the terms and conditions of the BSD License
    which may be found at http://opensource.org/licenses/bsd-license.php
    
    THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
    WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
    
  -->
    <xs:include schemaLocation="FrameworkDataElements.xsd"/>
    <xs:element name="FdbHeader">
        <xs:annotation>
            <xs:documentation xml:lang="en">This is the header for the Framework Package Database file.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element minOccurs="1" maxOccurs="1" ref="DatabaseName"/>
                <!-- Value fixed during initialization: FrameworkDatabase -->
                <xs:choice minOccurs="1" maxOccurs="1">
                    <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
                    <!-- Guid needs to be removed -->
                    <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
                    <!-- GuidValue needs to be required -->
                </xs:choice>
                <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
                <!-- Version is the version of this file -->
                <xs:element minOccurs="0" maxOccurs="1" ref="Path"/>
                <!-- Path needs to be removed -->
                <xs:choice minOccurs="1" maxOccurs="1">
                    <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
                    <!-- Created needs to be removed -->
                    <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
                    <!-- CreatedDate needs to be required -->
                </xs:choice>
                <xs:choice minOccurs="0">
                    <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
                    <!-- Updated needs to be removed -->
                    <xs:element minOccurs="0" maxOccurs="1" ref="UpdatedDate"/>
                </xs:choice>
                <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
                <xs:element minOccurs="0" maxOccurs="1" ref="Specification"/>
                <!-- Specificatoin needs to be required - FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00090000 -->
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="MbdHeader">
        <!-- MbdHeader needs to be removed -->
        <xs:annotation>
            <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>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element minOccurs="1" maxOccurs="1" ref="BaseName"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
                <xs:element minOccurs="0" maxOccurs="1" ref="Specification"/>
                <xs:choice minOccurs="1" maxOccurs="1">
                    <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
                    <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
                </xs:choice>
                <xs:choice minOccurs="1" maxOccurs="1">
                    <xs:element minOccurs="0" maxOccurs="1" ref="Modified"/>
                    <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
                </xs:choice>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="MbdLibHeader">
        <!-- MbdLibHeader needs to be removed -->
        <xs:annotation>
            <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>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element minOccurs="1" maxOccurs="1" ref="BaseName"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
                <xs:element minOccurs="0" maxOccurs="1" ref="Specification"/>
                <xs:choice minOccurs="1" maxOccurs="1">
                    <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
                    <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
                </xs:choice>
                <xs:choice minOccurs="1" maxOccurs="1">
                    <xs:element minOccurs="0" maxOccurs="1" ref="Modified"/>
                    <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
                </xs:choice>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="MsaHeader">
        <xs:annotation>
            <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>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:choice>
                    <xs:element minOccurs="0" maxOccurs="1" ref="BaseName"/>
                    <!-- BaseName needs to be removed  -->
                    <xs:element minOccurs="0" maxOccurs="1" name="ModuleName" type="xs:NCName"/>
                </xs:choice>
                <xs:element minOccurs="1" maxOccurs="1" ref="ModuleType"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="ComponentType"/>
                <xs:choice>
                    <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
                    <!-- Guid needs to be removed -->
                    <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
                    <!-- GuidValue needs to be required -->
                </xs:choice>
                <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
                <xs:choice minOccurs="1" maxOccurs="1">
                    <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
                    <!-- Created needs to be removed -->
                    <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
                    <!-- CreatedDate needs to be required -->
                </xs:choice>
                <xs:choice>
                    <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
                    <!-- Updated needs to be removed -->
                    <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
                </xs:choice>
                <xs:element minOccurs="0" maxOccurs="1" name="SupportedArchitectures">
                    <xs:simpleType>
                        <xs:list itemType="SupportedArchitectures"/>
                    </xs:simpleType>
                </xs:element>
                <xs:element minOccurs="0" maxOccurs="1" ref="Specification"/>
                <!-- Specification needs to be required - FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00090000 -->
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="MsaLibHeader">
        <!-- MsaLibHeader needs to be removed -->
        <xs:annotation>
            <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>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element minOccurs="1" maxOccurs="1" ref="BaseName"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="ModuleType"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="ComponentType"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Guid"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
                <xs:choice minOccurs="1" maxOccurs="1">
                    <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
                    <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
                </xs:choice>
                <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
                <xs:element minOccurs="0" maxOccurs="1" ref="Specification"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="PlatformHeader">
        <xs:annotation>
            <xs:documentation xml:lang="en">This head is for the Framework Platform Description file (FPD.)</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element minOccurs="1" maxOccurs="1" name="PlatformName" type="PlatformNamingConvention"/>
                <xs:choice>
                    <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
                    <!-- DO NOT USE Guid needs to be removed -->
                    <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
                    <!-- GuidValue needs to be required -->
                </xs:choice>
                <xs:element minOccurs="0" maxOccurs="1" ref="Version"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
                <xs:element minOccurs="0" maxOccurs="1" ref="Copyright"/>
                <xs:element minOccurs="0" maxOccurs="1" ref="License"/>
                <xs:choice minOccurs="1" maxOccurs="1">
                    <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
                    <!-- DO NOT USE Created needs to be removed -->
                    <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
                    <!-- CreatedDate needs to be required -->
                </xs:choice>
                <xs:element minOccurs="0" maxOccurs="1" ref="CreatedBy"/>
                <!-- DO NOT USE CreatedBy needs to be removed -->
                <xs:choice>
                    <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
                    <!-- DO NOT USE Updated needs to be removed -->
                    <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
                </xs:choice>
                <xs:element minOccurs="0" maxOccurs="1" ref="PackageType"/>
                <!-- DO NOT USE PackageType needs to be removed -->
                <xs:element minOccurs="0" maxOccurs="1" name="BuildTarget" type="BuildTargets"/>
                <xs:element minOccurs="0" maxOccurs="unbounded" ref="Specification"/>
                <!-- Specification needs to be required - FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00090000 -->
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <xs:element name="SpdHeader">
        <xs:annotation>
            <xs:documentation xml:lang="en">This head is for the Surface Area Package Description file (SPD) The Guid may change when the contents of the file are changed.</xs:documentation>
        </xs:annotation>
        <xs:complexType>
            <xs:sequence>
                <xs:element minOccurs="1" maxOccurs="1" ref="PackageName"/>
                <xs:choice minOccurs="1" maxOccurs="1">
                    <xs:element minOccurs="0" maxOccurs="1" ref="Guid"/>
                    <!-- Guid needs to be removed -->
                    <xs:element minOccurs="0" maxOccurs="1" ref="GuidValue"/>
                    <!-- GuidValue needs to be required -->
                </xs:choice>
                <xs:element minOccurs="1" maxOccurs="1" ref="Version"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Abstract"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Description"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="Copyright"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="License"/>
                <xs:choice minOccurs="1" maxOccurs="1">
                    <xs:element minOccurs="0" maxOccurs="1" ref="Created"/>
                    <!-- Created needs to be removed -->
                    <xs:element minOccurs="0" maxOccurs="1" ref="CreatedDate"/>
                    <!-- CreatedDate needs to be required -->
                </xs:choice>
                <xs:element minOccurs="0" maxOccurs="1" ref="E-Mail"/>
                <xs:choice minOccurs="0" maxOccurs="1">
                    <xs:element minOccurs="0" maxOccurs="1" ref="Updated"/>
                    <!-- Created needs to be removed -->
                    <xs:element minOccurs="0" maxOccurs="1" ref="ModifiedDate"/>
                    <!-- CreatedDate needs to be required -->
                </xs:choice>
                <xs:element minOccurs="0" maxOccurs="1" ref="URL"/>
                <xs:element minOccurs="1" maxOccurs="1" ref="PackageType"/>
                <xs:element minOccurs="0" maxOccurs="1" ref="ReadOnly"/>
                <xs:element minOccurs="0" maxOccurs="1" ref="RePackage"/>
                <xs:element minOccurs="0" maxOccurs="unbounded" ref="Specification"/>
                <!-- Specification needs to be required - FRAMEWORK_BUILD_PACKAGING_SPECIFICATION   0x00090000 -->
                <xs:element minOccurs="0" maxOccurs="1" ref="OutputDirectory"/>
                <!-- OutputDirectory needs to be removed -->
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>