summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-25 01:03:02 +0000
committerlhauch <lhauch@6f19259b-4bc3-4df7-8a09-765794883524>2007-01-25 01:03:02 +0000
commite2cce12fd643b53d63d65e2dacad481f5197c296 (patch)
treedaad1521ae0efc5c4f232c834ab4cee2e984d5fd /Tools
parent0aa050f014a69daa0810929a61913ac222690143 (diff)
downloadedk2-platforms-e2cce12fd643b53d63d65e2dacad481f5197c296.tar.xz
Added optional whitespace characters in before and/or after the content within <element> tags
Added Alignment optional attribute to the <Section> tag Changed the UserExtension Identifier from int to string git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2303 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r--Tools/XMLSchema/FrameworkDataAttributes.xsd1
-rw-r--r--Tools/XMLSchema/FrameworkDataElements.xsd2
-rw-r--r--Tools/XMLSchema/FrameworkDataTypes.xsd11
-rw-r--r--Tools/XMLSchema/FrameworkPlatformDataTypes.xsd4
-rw-r--r--Tools/XMLSchema/NamingConvention.xsd38
5 files changed, 28 insertions, 28 deletions
diff --git a/Tools/XMLSchema/FrameworkDataAttributes.xsd b/Tools/XMLSchema/FrameworkDataAttributes.xsd
index 8d076eeace..2f8b8aff85 100644
--- a/Tools/XMLSchema/FrameworkDataAttributes.xsd
+++ b/Tools/XMLSchema/FrameworkDataAttributes.xsd
@@ -266,6 +266,7 @@
<xs:attribute name="Compressible" type="xs:boolean" default="true" use="optional"/>
<xs:attribute name="SectionType" type="EfiSectionType" use="optional"/>
<xs:attribute name="EncapsulationType" type="xs:normalizedString" use="optional"/>
+ <xs:attribute name="Alignment" type="xs:string" use="optional"/>
<xs:attribute name="ToolName" type="xs:string" use="optional"/>
<xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
<xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>
diff --git a/Tools/XMLSchema/FrameworkDataElements.xsd b/Tools/XMLSchema/FrameworkDataElements.xsd
index db1a585f8a..977020829b 100644
--- a/Tools/XMLSchema/FrameworkDataElements.xsd
+++ b/Tools/XMLSchema/FrameworkDataElements.xsd
@@ -910,7 +910,7 @@
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xs:sequence>
<xs:attribute name="UserID" type="xs:NCName" use="required"/>
- <xs:attribute name="Identifier" type="xs:nonNegativeInteger" use="required"/>
+ <xs:attribute name="Identifier" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="Variables">
diff --git a/Tools/XMLSchema/FrameworkDataTypes.xsd b/Tools/XMLSchema/FrameworkDataTypes.xsd
index b90b2e5b3b..c2074ff69f 100644
--- a/Tools/XMLSchema/FrameworkDataTypes.xsd
+++ b/Tools/XMLSchema/FrameworkDataTypes.xsd
@@ -26,7 +26,7 @@
</xs:simpleType>
<xs:simpleType name="BlockNameType">
<xs:restriction base="UCNameType">
- <xs:pattern value="BLOCK[A-F0-9]{2}"/>
+ <xs:pattern value="\s*BLOCK[A-F0-9]{2}\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="BootModeNames">
@@ -104,7 +104,6 @@
</xs:simpleType>
<xs:simpleType name="DatumSizeLimitation">
<xs:restriction base="xs:nonNegativeInteger">
- <xs:minExclusive value="0"/>
<xs:maxExclusive value="13777216"/>
<xs:pattern value="(\s)*[1-9][0-9]*(\s)*"/>
</xs:restriction>
@@ -264,7 +263,7 @@
<xs:simpleType name="HexByteArrayListType">
<xs:restriction base="xs:normalizedString">
<xs:minLength value="4"/>
- <xs:pattern value="((( )?0x[a-fA-F0-9]{2})(,)?)+( )?"/>
+ <xs:pattern value="\s*((( )?0x[a-fA-F0-9]{2})(,)?)+( )?"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="HexByteArrayType">
@@ -341,7 +340,7 @@
</xs:simpleType>
<xs:simpleType name="Md5sumType">
<xs:restriction base="xs:normalizedString">
- <xs:pattern value="[a-fA-F0-9]{32}"/>
+ <xs:pattern value="\s*[a-fA-F0-9]{32}\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="PrimaryModuleListType">
@@ -453,7 +452,7 @@
<xs:simpleType name="SkuListType">
<xs:restriction base="xs:normalizedString">
<xs:minLength value="1"/>
- <xs:pattern value="(\d)+((,)?(\s)*(\d)+)*"/>
+ <xs:pattern value="\s*(\d)+((,)?(\s)*(\d)+)*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="SupportedArchitectures">
@@ -522,7 +521,7 @@
<xs:simpleType name="VariableOffsetValues">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
- <xs:pattern value="\d+(:)?\d*"/>
+ <xs:pattern value="\s*\d+(:)?\d*\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="VariableUsage">
diff --git a/Tools/XMLSchema/FrameworkPlatformDataTypes.xsd b/Tools/XMLSchema/FrameworkPlatformDataTypes.xsd
index 8631918cc7..014289ff5a 100644
--- a/Tools/XMLSchema/FrameworkPlatformDataTypes.xsd
+++ b/Tools/XMLSchema/FrameworkPlatformDataTypes.xsd
@@ -83,7 +83,7 @@
</xs:simpleType>
<xs:simpleType name="FfsDataAlignmentType">
<xs:restriction base="xs:nonNegativeInteger">
- <xs:pattern value="[0-7]{1}"/>
+ <xs:pattern value="\s*[0-7]{1}\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="FfsNameType">
@@ -91,7 +91,7 @@
<xs:documentation xml:lang="en"> This defines what an FFS Name can consist of.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="[a-zA-Z][_\-a-zA-Z0-9]*(\.)?[a-zA-Z0-9]*"/>
+ <xs:pattern value="\s*[a-zA-Z][_\-a-zA-Z0-9]*(\.)?[a-zA-Z0-9]*\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="FlashSize">
diff --git a/Tools/XMLSchema/NamingConvention.xsd b/Tools/XMLSchema/NamingConvention.xsd
index 936b6f2741..978a365ff4 100644
--- a/Tools/XMLSchema/NamingConvention.xsd
+++ b/Tools/XMLSchema/NamingConvention.xsd
@@ -20,7 +20,7 @@
<xs:documentation xml:lang="en"> C_Names must start with either an underscore (_) character followed by one or more alpha characters, followed by any combination of underscore or alphanumeric characters.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="(_)*[a-zA-Z]+((_)*[a-zA-Z0-9]*)*"/>
+ <xs:pattern value="\s*(_)*[a-zA-Z]+((_)*[a-zA-Z0-9]*)*\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="FileNameConvention">
@@ -28,7 +28,7 @@
<xs:documentation xml:lang="en"> This defines what a Filename is: Alphanumeric characters and optional underscore (_) or dash (-) characters, followed by a optional dot and more alphanumeric characters. </xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="[a-zA-Z](\.?[-_a-zA-Z0-9]+)*"/>
+ <xs:pattern value="\s*[a-zA-Z](\.?[\-_a-zA-Z0-9]+)*\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="GuidType">
@@ -42,7 +42,7 @@
<xs:documentation xml:lang="en"> This defines the minimum specification for a GUID Array which is 8 Hex Digits - 4 Hex Digits - 4 Hex Digits - 8 Hex Bytes, the last 16 Hex Digits can be enclosed in sqiggle {} brackets.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="0x[a-fA-F0-9]{1,8},( )*0x[a-fA-F0-9]{1,4},( )*0x[a-fA-F0-9]{1,4}(,( )*\{)?(,?( )*0x[a-fA-F0-9]{1,2}){8}( )*(\})?"/>
+ <xs:pattern value="\s*0x[a-fA-F0-9]{1,8},( )*0x[a-fA-F0-9]{1,4},( )*0x[a-fA-F0-9]{1,4}(,( )*\{)?(,?( )*0x[a-fA-F0-9]{1,2}){8}( )*(\})?\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="GuidType2">
@@ -50,7 +50,7 @@
<xs:documentation xml:lang="en"> A GUID must contain five different Hexadecimal character sets that are separated by a dash (-) character. </xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"/>
+ <xs:pattern value="\s*[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Hex64BitDataType">
@@ -58,7 +58,7 @@
<xs:documentation xml:lang="en">Define a Hex 64 Bit Value to be 0x[a-f0-9]{16}</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="(0x)?[a-fA-F0-9]{1,16}"/>
+ <xs:pattern value="\s*(0x)?[a-fA-F0-9]{1,16}\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="HexAddressType">
@@ -66,7 +66,7 @@
<xs:documentation xml:lang="en">Define a Hex Address, 0x[a-fA-F0-9]{1,16}</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="0x[a-fA-F0-9]{1,16}"/>
+ <xs:pattern value="\s*0x[a-fA-F0-9]{1,16}\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="HexByteDataType">
@@ -74,7 +74,7 @@
<xs:documentation xml:lang="en">Define a Hex Byte Value to be 0x[a-f0-9]{2}</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="(0x)?[a-fA-F0-9]{1,2}"/>
+ <xs:pattern value="\s*(0x)?[a-fA-F0-9]{1,2}\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="HexDataType">
@@ -82,7 +82,7 @@
<xs:documentation xml:lang="en">Define a Hex Value to be 0x[a-f0-9]+</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="0x[a-fA-F0-9]+"/>
+ <xs:pattern value="\s*0x[a-fA-F0-9]+\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="HexDigitType">
@@ -90,7 +90,7 @@
<xs:documentation xml:lang="en">Define a Hex Diget to be 0x[a-f0-9]</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="[a-fA-F0-9]{1}"/>
+ <xs:pattern value="\s*[a-fA-F0-9]{1}\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="HexDoubleWordDataType">
@@ -98,7 +98,7 @@
<xs:documentation xml:lang="en">Define a Hex Double Word Value to be 0x[a-f0-9]{8}</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="0x[a-fA-F0-9]{1,8}"/>
+ <xs:pattern value="\s*0x[a-fA-F0-9]{1,8}\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="HexWordDataType">
@@ -106,18 +106,18 @@
<xs:documentation xml:lang="en">Define a Hex Word Value to be 0x[a-f0-9]{4}</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="0x[a-fA-F0-9]{1,4}"/>
+ <xs:pattern value="\s*0x[a-fA-F0-9]{1,4}\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="KeywordList">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
- <xs:pattern value="[a-zA-Z]+(\ *_*[a-zA-Z0-9]*)*"/>
+ <xs:pattern value="\s*[a-zA-Z]+(\ *_*[a-zA-Z0-9]*)*\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="KeywordType">
<xs:restriction base="xs:normalizedString">
- <xs:pattern value="[a-zA-Z]+(_*[a-zA-Z0-9]*)*"/>
+ <xs:pattern value="\s*[a-zA-Z]+(_*[a-zA-Z0-9]*)*\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Paragraph">
@@ -137,7 +137,7 @@
<xs:documentation xml:lang="en">Limit Polarity vaild values to 0 and 1</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:int">
- <xs:pattern value="0|1"/>
+ <xs:pattern value="\s*0|1\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Sentence">
@@ -145,7 +145,7 @@
<xs:documentation xml:lang="en"> This data type requires two or more words </xs:documentation>
</xs:annotation>
<xs:restriction base="xs:normalizedString">
- <xs:pattern value="(\w+\W*)+( )+(\W*\w*\W*\s*)*"/>
+ <xs:pattern value="\s*(\w+\W*)+( )+(\W*\w*\W*\s*)*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="ToolsNameConvention">
@@ -153,7 +153,7 @@
<xs:documentation xml:lang="en">This data type is used for ToolCommand, ToolChainFamily and TagName.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:NCName">
- <xs:pattern value="[a-zA-Z][a-zA-Z0-9]*"/>
+ <xs:pattern value="\s*[a-zA-Z][a-zA-Z0-9]*\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="UCNameType">
@@ -161,7 +161,7 @@
<xs:documentation xml:lang="en"> Definition of a UpperCase Name, which can be any combination of upper case characters followed by zero or more underscore and/or uppercase alphanumeric characters </xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="[A-Z]+(_*[A-Z0-9]*)*"/>
+ <xs:pattern value="\s*[A-Z]+(_*[A-Z0-9]*)*\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="VersionDataType">
@@ -172,7 +172,7 @@
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
- <xs:pattern value="\d+(\.\d+)*"/>
+ <xs:pattern value="\s*\d+(\.\d+)*\s*"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="Zero">
@@ -180,7 +180,7 @@
<xs:documentation xml:lang="en">Define Zero as a vaild value</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:int">
- <xs:pattern value="0"/>
+ <xs:pattern value="\s*0\s*"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>