...
Attribute | Usage | Allowable Values | Description | Business Rule(s) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
xml:lang | Optional | See IETF Trust, Tags for Identifying Languages (Section 2.2, References) Samples:
| Code representing the language of the enclosed text value. Default value depends on locale. Note: The xml:lang attribute is part of the XML standard. |
| ||||||||||||
type | Required | type | Optional | text/plain, application/xhtml+xml | Contains IANA media type of the TranslatedText element contents. Default value: "text/plain". |
|
...
TranslatedTexts Present | Requested | Process |
<TranslatedText xml:lang="fr-CA">... <TranslatedText xml:lang="en-GB">... <TranslatedText>... | fr-FR | Look for xml:lang="fr-FR". This is not found, so look for xml:lang="fr". This is not found, so look for a TranslatedText with no xml:lang. This is the text that should be used. |
To avoid ambiguity, a particular language tag must not occur more than once in a series of TranslatedText elements with the same type. Also, it is not permitted to have more than one TranslatedText element without an xml:lang attribute within the same parent and type.
...
. |
XHTML
For type="application/xhtml+xml" it is possible to use HTML tags for text formatting. Value of the TranslatedText element must be always wrapped in <div> tag with non-whitespace content within it. The <div> must have a proper namespace specified: <div xmlns="https://www.w3.org/1999/xhtml/>
...