<language>

<language> characterizes a single language or sublanguage used within a text. 2.4.2 Language Usage
Moduleheader — 2 The TEI Header
AttributesIn addition to global attributes
ident(identifier) Supplies a language code constructed as defined in BCP 47 which is used to identify the language documented by this element, and which is referenced by the global xml:lang attribute.
Status Required
Datatype

<rng:ref name="data.language"/>
data.language
usagespecifies the approximate percentage (by volume) of the text which uses this language.
Status Optional
Datatype

<rng:data type="nonNegativeInteger">
<rng:param name="maxInclusive">100</rng:param>
</rng:data>
xsd:nonNegativeInteger { maxInclusive = "100" }
Values a whole number between 0 and 100
Used by
May contain
Declaration

<rng:element name="language">
<rng:ref name="att.global.attributes"/>
<rng:attribute name="ident">
 <rng:ref name="data.language"/>
</rng:attribute>
<rng:optional>
 <rng:attribute name="usage">
  <rng:data type="nonNegativeInteger">
   <rng:param name="maxInclusive">100</rng:param>
  </rng:data>
 </rng:attribute>
</rng:optional>
<rng:ref name="macro.phraseSeq.limited"/>
</rng:element>
element language
{
   att.global.attributes,
   attribute ident { data.language },
   attribute usage { xsd:nonNegativeInteger { maxInclusive = "100" } }?,
   macro.phraseSeq.limited
}
Example
<langUsage xml:lang="en-US">
 <language ident="en-USusage="75">modern American English</language>
 <language ident="i-az-Arabusage="20">Azerbaijani in Arabic script</language>
 <language ident="x-lapusage="05">Pig Latin</language>
</langUsage>
Note
Particularly for sublanguages, an informal prose characterization should be supplied as content for the element.