language¶
iati-activities/iati-activity/result/document-link/language
This is the reference page for the XML element language
.
Definition¶
The ISO 639-1 language code in which target document is written, e.g. “en”. Can be repeated to describe multi-lingual documents.
Rules¶
This element may occur any number of times.
Attributes¶
- @code
ISO 639-1 language code
This attribute is required.
This value must be of type xsd:string.
This value should be on the Language codelist.
Example Usage¶
Example usage of
language
of a document-link
in a result
element.The
@language
attribute declares a valid code (en) from the Language codelist.Note: This specifies the language of the document being linked to.
<document-link format="application/vnd.oasis.opendocument.text" url="http:www.example.org/docs/result_en.odt">
<title>
<narrative>Results Report 2013</narrative>
</title>
<description>
<narrative>Report of results</narrative>
</description>
<category code="A01" />
<language code="en" />
<document-date iso-date="2014-02-05" />
</document-link>
In some cases, a
document-link
may be in multiple languages. This is expressed by repeating the language
element.