June 2002
Intermediate to advanced
396 pages
11h 8m
English
xs:language — RFC 1766 language codes.
xs:token
xs:string
none
xs:enumeration, xs:length, xs:maxLength, xs:minLength, xs:pattern, xs:whiteSpace
<xs:simpleType name="language" id="language">
<xs:restriction base="xs:token">
<xs:pattern
value="([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{1,8})*"
/>
</xs:restriction>
</xs:simpleType>The lexical and value spaces of xs:language are
the set of language codes defined by the RFC 1766.
Although the schema for schema defines a minimal test to perform expressed as patterns (see the Definition), the lexical space is the set of existing language codes.
Some valid values for this datatype are: "en",
"en-US", "fr", or
"fr-FR".