Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

DDEX standards allow to include an XML attribute called LanguageAndScriptCode on most free-form string fields as well as composites that contain free-form string fields. The definition of this field is  "The Language and script […] as defined in IETF RfC 5646(*). The default is the same as indicated for the containing composite. Language and Script are provided as lang[-scipt][-region][-variant]. This is represented in an XML schema as an XML Attribute." The overall default is "en" (for English).


It is important to note that the language is independent from the territory for which information is provided. One example is the Swiss Army's main band. It can be communicated as a Resource Contributor as follows:

Code Block
languagehtml/xml
...
<SoundRecordingDetailsByTerritory>
  <TerritoryCode>Worldwide<TerritoryCode>
  ...
  <ResourceContributor>
    <PartyName LanguageAndScriptCode="en">Swiss Army Band Representation Orchestra</PartyName>
    ...
  <ResourceContributor>
  ...
</SoundRecordingDetailsByTerritory>
<SoundRecordingDetailsByTerritory>
  <TerritoryCode>CH<TerritoryCode>
  ...
    <ResourceContributor>
    <PartyName LanguageAndScriptCode="de"> 
       <FullName>Repräsentationsorchester Schweizer Armeespiel</FullName
    </PartyName>
    <PartyName LanguageAndScriptCode="fr"
       <FullName>L'orchestre de représentation de l'Armée suisse</FullName>
    </PartyName>
    <PartyName LanguageAndScriptCode="it">
        <FullName>Orchestra di rappresentanza</FullName
    </PartyName>
  <ResourceContributor>
  ...
</SoundRecordingDetailsByTerritory>
...

Note: the example is for ERN-3, but applies equally for ERN-4 and other standards.


Other examples for the the LanguageAndScriptCode attribute are listed on http://tools.ietf.org/html/rfc5646#page-80. These examples include:

...