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
This commit is contained in:
lhauch 2007-01-25 01:03:02 +00:00
parent 0aa050f014
commit e2cce12fd6
5 changed files with 28 additions and 28 deletions

View File

@ -266,6 +266,7 @@
<xs:attribute name="Compressible" type="xs:boolean" default="true" use="optional"/> <xs:attribute name="Compressible" type="xs:boolean" default="true" use="optional"/>
<xs:attribute name="SectionType" type="EfiSectionType" use="optional"/> <xs:attribute name="SectionType" type="EfiSectionType" use="optional"/>
<xs:attribute name="EncapsulationType" type="xs:normalizedString" 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="ToolName" type="xs:string" use="optional"/>
<xs:attribute name="SupArchList" type="ArchListType" use="optional"/> <xs:attribute name="SupArchList" type="ArchListType" use="optional"/>
<xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/> <xs:attribute name="FeatureFlag" type="FeatureFlagExpressionType" use="optional"/>

View File

@ -910,7 +910,7 @@
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/> <xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
</xs:sequence> </xs:sequence>
<xs:attribute name="UserID" type="xs:NCName" use="required"/> <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:complexType>
</xs:element> </xs:element>
<xs:element name="Variables"> <xs:element name="Variables">

View File

@ -26,7 +26,7 @@
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="BlockNameType"> <xs:simpleType name="BlockNameType">
<xs:restriction base="UCNameType"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="BootModeNames"> <xs:simpleType name="BootModeNames">
@ -104,7 +104,6 @@
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="DatumSizeLimitation"> <xs:simpleType name="DatumSizeLimitation">
<xs:restriction base="xs:nonNegativeInteger"> <xs:restriction base="xs:nonNegativeInteger">
<xs:minExclusive value="0"/>
<xs:maxExclusive value="13777216"/> <xs:maxExclusive value="13777216"/>
<xs:pattern value="(\s)*[1-9][0-9]*(\s)*"/> <xs:pattern value="(\s)*[1-9][0-9]*(\s)*"/>
</xs:restriction> </xs:restriction>
@ -264,7 +263,7 @@
<xs:simpleType name="HexByteArrayListType"> <xs:simpleType name="HexByteArrayListType">
<xs:restriction base="xs:normalizedString"> <xs:restriction base="xs:normalizedString">
<xs:minLength value="4"/> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="HexByteArrayType"> <xs:simpleType name="HexByteArrayType">
@ -341,7 +340,7 @@
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="Md5sumType"> <xs:simpleType name="Md5sumType">
<xs:restriction base="xs:normalizedString"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="PrimaryModuleListType"> <xs:simpleType name="PrimaryModuleListType">
@ -453,7 +452,7 @@
<xs:simpleType name="SkuListType"> <xs:simpleType name="SkuListType">
<xs:restriction base="xs:normalizedString"> <xs:restriction base="xs:normalizedString">
<xs:minLength value="1"/> <xs:minLength value="1"/>
<xs:pattern value="(\d)+((,)?(\s)*(\d)+)*"/> <xs:pattern value="\s*(\d)+((,)?(\s)*(\d)+)*"/>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="SupportedArchitectures"> <xs:simpleType name="SupportedArchitectures">
@ -522,7 +521,7 @@
<xs:simpleType name="VariableOffsetValues"> <xs:simpleType name="VariableOffsetValues">
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:minLength value="1"/> <xs:minLength value="1"/>
<xs:pattern value="\d+(:)?\d*"/> <xs:pattern value="\s*\d+(:)?\d*\s*"/>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="VariableUsage"> <xs:simpleType name="VariableUsage">

View File

@ -83,7 +83,7 @@
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="FfsDataAlignmentType"> <xs:simpleType name="FfsDataAlignmentType">
<xs:restriction base="xs:nonNegativeInteger"> <xs:restriction base="xs:nonNegativeInteger">
<xs:pattern value="[0-7]{1}"/> <xs:pattern value="\s*[0-7]{1}\s*"/>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="FfsNameType"> <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:documentation xml:lang="en"> This defines what an FFS Name can consist of.</xs:documentation>
</xs:annotation> </xs:annotation>
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="FlashSize"> <xs:simpleType name="FlashSize">

View File

@ -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: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:annotation>
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="FileNameConvention"> <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: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:annotation>
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="GuidType"> <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: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:annotation>
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="GuidType2"> <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: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:annotation>
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="Hex64BitDataType"> <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:documentation xml:lang="en">Define a Hex 64 Bit Value to be 0x[a-f0-9]{16}</xs:documentation>
</xs:annotation> </xs:annotation>
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="HexAddressType"> <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:documentation xml:lang="en">Define a Hex Address, 0x[a-fA-F0-9]{1,16}</xs:documentation>
</xs:annotation> </xs:annotation>
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="HexByteDataType"> <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:documentation xml:lang="en">Define a Hex Byte Value to be 0x[a-f0-9]{2}</xs:documentation>
</xs:annotation> </xs:annotation>
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="HexDataType"> <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:documentation xml:lang="en">Define a Hex Value to be 0x[a-f0-9]+</xs:documentation>
</xs:annotation> </xs:annotation>
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="HexDigitType"> <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:documentation xml:lang="en">Define a Hex Diget to be 0x[a-f0-9]</xs:documentation>
</xs:annotation> </xs:annotation>
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="HexDoubleWordDataType"> <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:documentation xml:lang="en">Define a Hex Double Word Value to be 0x[a-f0-9]{8}</xs:documentation>
</xs:annotation> </xs:annotation>
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="HexWordDataType"> <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:documentation xml:lang="en">Define a Hex Word Value to be 0x[a-f0-9]{4}</xs:documentation>
</xs:annotation> </xs:annotation>
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="KeywordList"> <xs:simpleType name="KeywordList">
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:minLength value="1"/> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="KeywordType"> <xs:simpleType name="KeywordType">
<xs:restriction base="xs:normalizedString"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="Paragraph"> <xs:simpleType name="Paragraph">
@ -137,7 +137,7 @@
<xs:documentation xml:lang="en">Limit Polarity vaild values to 0 and 1</xs:documentation> <xs:documentation xml:lang="en">Limit Polarity vaild values to 0 and 1</xs:documentation>
</xs:annotation> </xs:annotation>
<xs:restriction base="xs:int"> <xs:restriction base="xs:int">
<xs:pattern value="0|1"/> <xs:pattern value="\s*0|1\s*"/>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="Sentence"> <xs:simpleType name="Sentence">
@ -145,7 +145,7 @@
<xs:documentation xml:lang="en"> This data type requires two or more words </xs:documentation> <xs:documentation xml:lang="en"> This data type requires two or more words </xs:documentation>
</xs:annotation> </xs:annotation>
<xs:restriction base="xs:normalizedString"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="ToolsNameConvention"> <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:documentation xml:lang="en">This data type is used for ToolCommand, ToolChainFamily and TagName.</xs:documentation>
</xs:annotation> </xs:annotation>
<xs:restriction base="xs:NCName"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="UCNameType"> <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: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:annotation>
<xs:restriction base="xs:string"> <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:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="VersionDataType"> <xs:simpleType name="VersionDataType">
@ -172,7 +172,7 @@
</xs:documentation> </xs:documentation>
</xs:annotation> </xs:annotation>
<xs:restriction base="xs:string"> <xs:restriction base="xs:string">
<xs:pattern value="\d+(\.\d+)*"/> <xs:pattern value="\s*\d+(\.\d+)*\s*"/>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
<xs:simpleType name="Zero"> <xs:simpleType name="Zero">
@ -180,7 +180,7 @@
<xs:documentation xml:lang="en">Define Zero as a vaild value</xs:documentation> <xs:documentation xml:lang="en">Define Zero as a vaild value</xs:documentation>
</xs:annotation> </xs:annotation>
<xs:restriction base="xs:int"> <xs:restriction base="xs:int">
<xs:pattern value="0"/> <xs:pattern value="\s*0\s*"/>
</xs:restriction> </xs:restriction>
</xs:simpleType> </xs:simpleType>
</xs:schema> </xs:schema>