下表列出了派生的 XML 架构数据类型、可应用于该派生的数据类型的方面以及该派生的数据类型的说明。
有关各个方面的说明,请参阅数据类型方面。
数据类型 | 方面 | 描述 |
normalizedString | length、pattern、maxLength、minLength、enumeration、whiteSpace | 表示空白正常化的字符串。 该数据类型是从 string 派生的。 |
token | enumeration、pattern、length、minLength、maxLength、whiteSpace | 表示标记化的字符串。 该数据类型是从 normalizedString 派生的。 |
language | length、pattern、maxLength、minLength、enumeration、whiteSpace | 表示自然语言标识符(由 RFC 1766 定义)。 该数据类型是从 token 派生的。 |
IDREFS | length、maxLength、minLength、enumeration、whiteSpace | 表示 IDREFS 属性类型。 包含一组 IDREF 类型的值。 |
ENTITIES | length、maxLength、minLength、enumeration、whiteSpace | 表示 ENTITIES 属性类型。 包含一组 ENTITY 类型的值。 |
NMTOKEN | length、pattern、maxLength、minLength、enumeration、whiteSpace | 表示 NMTOKEN 属性类型。 NMTOKEN 是任意组合的名称字符(字母、数字和其他字符)的集合。 与 Name 和 NCName 不同,NMTOKEN 对起始字符没有任何限制。 该数据类型是从 token 派生的。 |
NMTOKENS | length、maxLength、minLength、enumeration、whiteSpace | 表示 NMTOKENS 属性类型。 包含一组 NMTOKEN 类型的值。 |
Name | length、pattern、maxLength、minLength、enumeration、whiteSpace | 表示 XML 中的名称。 Name 是以字母、下划线或冒号开头并后跟名称字符(字母、数字和其他字符)的标记。 该数据类型是从 token 派生的。 |
NCName | length、pattern、maxLength、minLength、enumeration、whiteSpace | 表示非冒号表示名称。 该数据类型与 Name 基本相同,只是它不能以冒号开头。 该数据类型是从 Name 派生的。 |
ID | length、enumeration、pattern、maxLength、minLength、whiteSpace | 表示在“XML 1.0 建议”中定义的 ID 属性类型。 该 ID 必须是无冒号名称 (NCName) 并且在 XML 文档内必须是唯一的。 该数据类型是从 NCName 派生的。 |
IDREF | length、enumeration、pattern、maxLength、minLength、whiteSpace | 表示对 ID 属性与指定 ID 匹配的元素的引用。 IDREF 必须是 NCName,并且必须是 XML 文档中 ID 类型的元素或属性的值。 该数据类型是从 NCName 派生的。 |
ENTITY | length、enumeration、pattern、maxLength、minLength、whiteSpace | 表示“XML 1.0 建议”中的 ENTITY 属性类型。 这是对未分析实体的引用,该实体具有与指定名称匹配的名称。 ENTITY 必须是 NCName,并且必须在架构中作为未分析的实体名称声明。 该数据类型是从 NCName 派生的。 |
integer | enumeration、fractionDigits、pattern、minInclusive、minExclusive、maxInclusive、maxExclusive、totalDigits、whiteSpace | 表示具有可选前导符号(+ 或 -)的十进制数字序列。 该数据类型是从 decimal 派生的。 |
nonPositiveInteger | enumeration、fractionDigits、pattern、minInclusive、minExclusive、maxInclusive、maxExclusive、totalDigits、whiteSpace | 表示小于或等于零的整数。 nonPositiveInteger由负号 (-) 和十进制数字序列组成。 该数据类型是从 integer 派生的。 |
negativeInteger | enumeration、fractionDigits、pattern、minInclusive、minExclusive、maxInclusive、maxExclusive、totalDigits、whiteSpace | 表示小于零的整数。 由负号 (-) 和十进制数字序列组成。 该数据类型是从 nonPositiveInteger 派生的。 |
long | enumeration、fractionDigits、pattern、minInclusive、minExclusive、maxInclusive、maxExclusive、totalDigits、whiteSpace | 表示一个整数,其最小值为 -9223372036854775808,最大值为 9223372036854775807。 该数据类型是从 integer 派生的。 |
int | enumeration、fractionDigits、pattern、minInclusive、minExclusive、maxInclusive、maxExclusive、totalDigits、whiteSpace | 表示一个整数,其最小值为 -2147483648,最大值为 2147483647。 该数据类型是从 long 派生的。 |
short | enumeration、fractionDigits、pattern、minInclusive、minExclusive、maxInclusive、maxExclusive、totalDigits、whiteSpace | 表示一个整数,其最小值为 -32768,最大值为 32767。 该数据类型是从 int 派生的。 |
byte | enumeration、fractionDigits、pattern、minInclusive、minExclusive、maxInclusive、maxExclusive、totalDigits、whiteSpace | 表示一个整数,其最小值为 -128,最大值为 127。 该数据类型是从 short 派生的。 |
nonNegativeInteger | enumeration、fractionDigits、pattern、minInclusive、minExclusive、maxInclusive、maxExclusive、totalDigits、whiteSpace | 表示一个大于或等于零的整数。 该数据类型是从 integer 派生的。 |
unsignedLong | enumeration、fractionDigits、pattern、minInclusive、minExclusive、maxInclusive、maxExclusive、totalDigits、whiteSpace | 表示一个整数,其最小值为 0,最大值为 18446744073709551615。 该数据类型是从 nonNegativeInteger 派生的。 |
unsignedInt | enumeration、fractionDigits、pattern、minInclusive、minExclusive、maxInclusive、maxExclusive、totalDigits、whiteSpace | 表示一个整数,其最小值为 0,最大值为 4294967295。 该数据类型是从 unsignedLong 派生的。 |
unsignedShort | enumeration、fractionDigits、pattern、minInclusive、minExclusive、maxInclusive、maxExclusive、totalDigits、whiteSpace | 表示一个整数,其最小值为 0,最大值为 65535。 该数据类型是从 unsignedInt 派生的。 |
unsignedByte | enumeration、fractionDigits、pattern、minInclusive、minExclusive、maxInclusive、maxExclusive、totalDigits、whiteSpace | 表示一个整数,其最小值为 0,最大值为 255。 该数据类型是从 unsignedShort 派生的。 |
positiveInteger | enumeration、fractionDigits、pattern、minInclusive、minExclusive、maxInclusive、maxExclusive、totalDigits、whiteSpace | 表示一个大于零的整数。 该数据类型是从 nonNegativeInteger 派生的。 |