]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/XMLSchema/FrameworkDataAttributes.xsd
updated several elements and re-organized the layout (moving Attributes to their...
[mirror_edk2.git] / Tools / XMLSchema / FrameworkDataAttributes.xsd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" xmlns="http://www.TianoCore.org/2006/Edk2.0" targetNamespace="http://www.TianoCore.org/2006/Edk2.0">
3 <!--
4 Filename: FrameworkDataAttributes.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:annotation>
16 <xs:documentation xml:lang="en">This schema defines EFI and Framework Attribute. Only attributeGroups are specified in this file. </xs:documentation>
17 </xs:annotation>
18 <xs:include schemaLocation="NamingConvention.xsd"/>
19 <xs:include schemaLocation="FrameworkDataTypes.xsd"/>
20 <xs:attributeGroup name="BaseNameAttributes">
21 <xs:attribute name="Guid" type="GuidType" use="optional"/>
22 <xs:attribute name="Version" type="VersionDataType" use="optional"/>
23 </xs:attributeGroup>
24 <xs:attributeGroup name="BootModeAttributes">
25 <xs:attribute name="Guid" type="GuidType" use="optional"/>
26 <xs:attribute name="BootModeName" type="BootModeNames" use="required"/>
27 <xs:attribute name="Usage" type="BootModeUsage" use="required"/>
28 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
29 </xs:attributeGroup>
30 <xs:attributeGroup name="ConvertAttributeString">
31 <xs:attribute name="SourceString" type="xs:string" use="optional"/>
32 <xs:attribute default="Unicode" name="OutputFiletype" type="xs:string" use="optional"/>
33 <xs:attribute name="OutputFilename" type="FileNameConvention" use="optional"/>
34 </xs:attributeGroup>
35 <xs:attributeGroup name="DataHubAttributes">
36 <xs:attribute name="Guid" type="GuidType" use="optional"/>
37 <xs:attribute name="Usage" type="DataHubUsage" use="optional"/>
38 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
39 </xs:attributeGroup>
40 <xs:attributeGroup name="DirectoryAttributes">
41 <xs:attribute name="Separator" type="ToothPick"/>
42 </xs:attributeGroup>
43 <xs:attributeGroup name="EventAttributes">
44 <xs:attribute name="Usage" type="EventUsage" use="optional"/>
45 <xs:attribute name="EventGroup" type="EventTypes" use="optional"/>
46 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
47 </xs:attributeGroup>
48 <xs:attributeGroup name="ExternAttributes">
49 <xs:attribute name="Usage" type="ExternUsage" use="optional"/>
50 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
51 </xs:attributeGroup>
52 <xs:attributeGroup name="FilenameAttributes">
53 <xs:attribute name="Usage" type="FileNameUsage" use="optional"/>
54 <xs:attribute name="Guid" type="GuidType" use="optional"/>
55 <xs:attribute name="Path" type="DirectoryNamingConvention" use="optional"/>
56 <xs:attribute name="FileType" type="xs:string" use="optional"/>
57 <xs:attribute name="ToolChain" type="ToolChains" use="optional"/>
58 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
59 </xs:attributeGroup>
60 <xs:attributeGroup name="FormsetAttributes">
61 <xs:attribute name="Usage" type="FormSetUsage" use="optional"/>
62 <xs:attribute name="Guid" type="GuidType" use="optional"/>
63 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
64 </xs:attributeGroup>
65 <xs:attributeGroup name="GuidAttributes">
66 <xs:attribute name="Usage" type="GuidUsage" use="optional"/>
67 <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
68 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
69 </xs:attributeGroup>
70 <xs:attributeGroup name="HobAttributes">
71 <xs:attribute name="Usage" type="HobUsage" use="optional"/>
72 <xs:attribute name="HobType" type="HobTypes" use="required"/>
73 <xs:attribute default="true" name="HobEnabled" type="xs:boolean" use="optional"/>
74 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
75 </xs:attributeGroup>
76 <xs:attributeGroup name="IncludeAttributes">
77 <xs:attribute name="Guid" type="GuidType" use="optional"/>
78 <xs:attribute name="Path" type="DirectoryNamingConvention" use="optional"/>
79 <xs:attribute name="Class" type="xs:normalizedString" use="optional"/>
80 <xs:attribute name="Version" type="VersionDataType" use="optional"/>
81 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
82 <xs:attribute name="ModuleType" type="ModuleTypeDef" use="optional"/>
83 </xs:attributeGroup>
84 <xs:attributeGroup name="LibraryAttributes">
85 <xs:attribute name="Guid" type="GuidType" use="optional"/>
86 <xs:attribute name="LibraryClass" type="BaseNameConvention" use="optional"/>
87 <xs:attribute name="ClassGuid" type="GuidType" use="optional"/>
88 <xs:attribute name="Version" type="VersionDataType" use="optional"/>
89 <xs:attribute name="Usage" type="LibraryUsage" use="optional"/>
90 <xs:attribute name="Package" type="xs:string" use="optional"/>
91 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
92 </xs:attributeGroup>
93 <xs:attributeGroup name="ModuleNameAttributes">
94 <xs:attribute name="Guid" type="GuidType" use="optional"/>
95 <xs:attribute name="Version" type="VersionDataType" use="optional"/>
96 </xs:attributeGroup>
97 <xs:attributeGroup name="MsaAttributes">
98 <xs:attribute name="Arch" type="SupportedArchitectures" use="optional"/>
99 <xs:attribute name="FvBinding" type="xs:string" use="optional"/>
100 <xs:attribute name="ModuleName" type="C_Name" use="optional"/>
101 <xs:attribute name="ModuleGuid" type="GuidType" use="optional"/>
102 <xs:attribute name="PackageName" type="C_Name" use="optional"/>
103 <xs:attribute name="PackageGuid" type="GuidType" use="optional"/>
104 <xs:attribute name="BuildSequence" type="xs:int" use="optional"/>
105 </xs:attributeGroup>
106 <xs:attributeGroup name="OptionAttributes">
107 <xs:attribute name="Platform" type="PlatformNamingConvention" use="optional"/>
108 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
109 <xs:attribute name="ToolChain" type="ToolChains" use="optional"/>
110 </xs:attributeGroup>
111 <xs:attributeGroup name="PackageAttributes">
112 <xs:attribute name="Usage" type="PackageUsage" use="optional"/>
113 <xs:attribute name="PackageType" type="PackageType" use="optional"/>
114 <xs:attribute name="UpdatedDate" type="DateType" use="optional"/>
115 </xs:attributeGroup>
116 <xs:attributeGroup name="PackageNameAttributes">
117 <xs:attribute name="Guid" type="GuidType" use="optional"/>
118 <xs:attribute name="Version" type="VersionDataType" use="optional"/>
119 </xs:attributeGroup>
120 <xs:attributeGroup name="PcdAttributes">
121 <xs:annotation>
122 <xs:documentation xml:lang="en">These attributes are for the Pcds listed in PcdData, PcdEntry and/or PcdBuildData entries.</xs:documentation>
123 <xs:documentation xml:lang="en">PcdUsage is only valid for PcdItemTypes = FEATURE_FLAG</xs:documentation>
124 </xs:annotation>
125 <xs:attribute name="ItemType" type="PcdItemTypes" use="required"/>
126 <xs:attribute name="PcdUsage" type="PcdUsage" use="optional"/>
127 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
128 </xs:attributeGroup>
129 <xs:attributeGroup name="PlatformAttributes">
130 <xs:attribute name="Guid" type="GuidType" use="optional"/>
131 <xs:attribute name="Version" type="VersionDataType" use="optional"/>
132 <xs:attribute name="AlternateName" type="FileNameConvention" use="optional"/>
133 <xs:attribute name="PlatformName" type="BaseNameConvention" use="optional"/>
134 <xs:attribute name="PlatformGuid" type="GuidType" use="optional"/>
135 <xs:attribute name="PlatformVersion" type="xs:string" use="optional"/>
136 </xs:attributeGroup>
137 <xs:attributeGroup name="PpiAttributes">
138 <xs:attribute name="Guid" type="GuidType" use="optional"/>
139 <xs:attribute name="Usage" type="PpiUsage" use="optional"/>
140 <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
141 <xs:attribute name="FeatureFlag" type="C_Name" use="optional"/>
142 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
143 </xs:attributeGroup>
144 <xs:attributeGroup name="PpiNotifyAttributes">
145 <xs:attribute name="Guid" type="GuidType" use="optional"/>
146 <xs:attribute name="Usage" type="PpiNotifyUsage" use="optional"/>
147 <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
148 <xs:attribute name="FeatureFlag" type="C_Name" use="optional"/>
149 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
150 </xs:attributeGroup>
151 <xs:attributeGroup name="ProtocolAttributes">
152 <xs:attribute name="Guid" type="GuidType" use="optional"/>
153 <xs:attribute name="Usage" type="ProtocolUsage" use="optional"/>
154 <xs:attribute default="true" name="EnableFeature" type="xs:boolean" use="optional"/>
155 <xs:attribute name="FeatureFlag" type="C_Name" use="optional"/>
156 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
157 </xs:attributeGroup>
158 <xs:attributeGroup name="ProtocolNotifyAttributes">
159 <xs:attribute name="Guid" type="GuidType" use="optional"/>
160 <xs:attribute name="Usage" type="ProtocolNotifyUsage" use="optional"/>
161 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
162 </xs:attributeGroup>
163 <xs:attributeGroup name="SectionAttributes">
164 <xs:annotation>
165 <xs:documentation xml:lang="en">Attributes are either compressable and/or sequence order binding</xs:documentation>
166 </xs:annotation>
167 <xs:attribute name="SectionType" type="EfiSectionType" use="optional"/>
168 <xs:attribute default="true" name="Compressible" type="xs:boolean" use="optional"/>
169 <xs:attribute name="BindingOrder" type="xs:int" use="optional"/>
170 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
171 </xs:attributeGroup>
172 <xs:attributeGroup name="SectionsAttributes">
173 <xs:annotation>
174 <xs:documentation xml:lang="en">Attributes for Sections, EncapsulationTag, EncapsulationType and OverrideID</xs:documentation>
175 </xs:annotation>
176 <xs:attribute name="EncapsulationType" type="xs:normalizedString" use="optional"/>
177 <xs:attribute name="EncapsulationTag" type="xs:string" use="optional"/>
178 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
179 </xs:attributeGroup>
180 <xs:attributeGroup name="SystemTableAttributes">
181 <xs:attribute name="Usage" type="SystemTableUsage" use="optional"/>
182 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
183 </xs:attributeGroup>
184 <xs:attributeGroup name="VariableAttributes">
185 <xs:attribute name="Usage" type="VariableUsage" use="optional"/>
186 <xs:attribute name="OverrideID" type="xs:int" use="optional"/>
187 </xs:attributeGroup>
188 <xs:attributeGroup name="UrlAttribute">
189 <xs:attribute name="Url" type="xs:anyURI"/>
190 </xs:attributeGroup>
191 </xs:schema>