Name

xsd:language — RFC 1766 language codes

Synopsis

<xsd:simpleType name="language” id="language">
 <xsd:restriction base="xsd:token">
 <xsd:pattern
 value="([a-zA-Z]{2}|[iI]-[a-zA-Z]+|[xX]-[a-zA-Z]{1,8})(-[a-zA-Z]{1,8})*”
 />
 </xsd:restriction>
</xsd:simpleType>

Derived from

xsd:token

Primary

xsd:string

Known subtypes

None

Data parameters (facets)

enumeration, length, maxLength, minLength, pattern

Description

The lexical and value spaces of xsd:language are the set of language codes defined by RFC 1766.

Restrictions

Although the schema for schema defines a test to perform expressed as patterns (see the definition), the lexical space is the set of existing language codes.

Example

Some valid values for this datatype are: en, en-US, fr, or fr-FR.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.141.45.253