xml:lang

Language

Definition

The language of the intellectual content of the element for which this is an attribute, typically a whole article

Usage

Recommended best practice is to use values as defined in RFC 1766, typically two-letter language codes such as “FR” (French), “EN” (English), and “DE” (German), including hyphenated differentiators such as “EN-AU” (Australian English) and “EN-US” (US English). These values are NOT case sensitive, so “EN” is the same as “en”.

Remarks

Processing and Conversion Note: Unlike nearly all other attributes in XML, the value of language is inherited. This means that all elements inside the one with the language attribute (its descendants) are assumed to be in the same language, unless they explicitly set their own xml:lang attribute.

Attribute Values

In Elements

<article> Article
<response> Response
<sub-article> Sub-article
Value Meaning
An alphanumeric string, which may include hyphens For best practice, use the RFC two-letter language code (such as “EN”), including any hyphenated differentiators (such as “EN-AU”). The values are not case sensitive.
Default value: EN

In Elements

<abstract> Abstract; <alt-text> Alternate Text Name (For a Figure, Etc.); <array> Array (Simple Tabular Array); <article-title> Article Title; <boxed-text> Boxed Text; <caption> Caption of a Figure, Table, Etc.; <disp-quote> Quote, Displayed; <fig> Figure; <fn> Footnote; <kwd-group> Keyword Group; <long-desc> Long Description; <p> Paragraph; <preformat> Preformatted Text; <sec> Section; <source> Source; <speech> Speech; <subj-group> Subject Group; <subtitle> Article Subtitle; <supplementary-material> Supplementary Material; <table-wrap> Table Wrapper; <trans-abstract> Translated Abstract; <trans-source> Translated Source; <trans-subtitle> Translated Subtitle; <trans-title> Translated Title; <verse-group> Verse Form for Poetry
Value Meaning
An alphanumeric string, which may include hyphens For best practice, use the RFC two-letter language code (such as “EN”), including any hyphenated differentiators (such as “EN-AU”). The values are not case sensitive.
Restriction: This attribute may be specified if the element is used.