Basic Datatype - Language

Recommendation
The natural language that is used within the text element is described using the L attribute filled with the languages identifiers defined by W3C xsd:language primitive datatype that uses codes from IETF RFC 1766 (Tags for the identification of Languages). In this RFC, tags are constructed from two-letter language codes as defined by ISO 639, from two-letter country codes as defined by ISO 3166, or from language identifiers registered with the Internet Assigned Numbers Authority (IANA-LANGCODES).

The most common languages in Belgium are:


Example of usage of the datatype within a XSchema
<xsd:complexType name="TextType" mixed="false">
<xsd:simpleContent>
  <xsd:extension base="xsd:string">
    <xsd:attribute name="L" type="xsd:language" use="required"/>
  </xsd:extension>
</xsd:simpleContent>
</xsd:complexType>

Example of usage of the datatype within a XML message
<beginmoment>
  ...
  <text L="nl">één jaar geleden</text>
  ...
</beginmoment>