language

iati-activities/iati-activity/document-link/language

This is the reference page for the XML element language. See also the relevant overview page: Related Documents

Definition

The ISO 639 language code for the target document, e.g. “en”.

Attributes

Example Usage

Example usage of language in context of document-link element.
NB: This specifies the language of the document being linked to.
  <document-link format="application/vnd.oasis.opendocument.text" url="http:www.example.org/docs/report_en.odt">
   <title>Project report 2013</title>
   <category code="A01" />
   <language code="en" />
  </document-link>
It may be appropriate to repeat the document-link element if the document is available in other languages:.

Note: This specifies the language of the document being linked to. In this example, the title element still uses xml:lang to declare the title text in two languages.
  <document-link format="application/vnd.oasis.opendocument.text" url="http:www.example.org/docs/report_fr.odt">
   <title>Project report 2013</title>
   <title xml:lang="fr">Rapport de projet 2013</title>
   <category code="B01" />
   <language code="fr" />
  </document-link>

Changelog

1.02

Addition of a language element as a child of the document-link element: document-link/language/text() (0..1) - The ISO 639 code for the language of the document

1.01

This element did not exist

Developer tools

Find the source of this documentation on github: