22.9.2.6 ST_Lang

This simple type specifies that its contents contains a language identifier as defined by RFC 4646/BCP 47.

The contents of this language are interpreted based on the context of the parent XML element.

[Example: Consider a language code defined as follows :

<w:lang w:val="en-CA"

This language is therefore specified as English (en) and Canada (CA), resulting in use of the English (Canada) language setting. end example]

This simple type’s contents are a restriction of the W3C XML Schema string datatype.

[Note: The W3C XML Schema definition of this simple type’s content model (ST_Lang) is located in A.6.9. end note]

Last updated on