<div dir="ltr">Jani,<div><br></div><div>InternationalString contains only 1..n String elements. Each string element has the following set of attributes: xml:lang, isTranslated, isTranslatable, translationSourceLanguage, and translationDate. </div><div><br></div><div>We made a large number of objects (elements and attributes) optional to support creating metadata at varying points in the production process. This is one of those cases. All Maintainable objects have an optional xml:lang which can be inherited by the content. This is common in cases where all of the content is of a single language. Clearly multiple strings would be confusing without xml:lang attributes and those using multiple languages should make use of the available metadata objects to clarify the situation. DDIProfile can be used by organizations to tighten up requirements for various production levels such as publication. </div><div><br></div><div>The XML structure is given below.</div><div><br></div><div>Wendy</div><div><br></div><div><div><span class="" style="white-space:pre">        </span>&lt;xs:complexType name=&quot;InternationalStringType&quot;&gt;</div><div><span class="" style="white-space:pre">                </span>&lt;xs:annotation&gt;</div><div><span class="" style="white-space:pre">                        </span>&lt;xs:documentation&gt;Packaging structure for multiple language versions of the same string content. Where an element of this type is repeatable, the expectation is that each repetition contains different content, each of which can be expressed in multiple languages. The language designation goes on the individual String.&lt;/xs:documentation&gt;</div><div><span class="" style="white-space:pre">                </span>&lt;/xs:annotation&gt;</div><div><span class="" style="white-space:pre">                </span>&lt;xs:sequence&gt;</div><div><span class="" style="white-space:pre">                        </span>&lt;xs:element ref=&quot;String&quot; maxOccurs=&quot;unbounded&quot;&gt;</div><div><span class="" style="white-space:pre">                                </span>&lt;xs:annotation&gt;</div><div><span class="" style="white-space:pre">                                        </span>&lt;xs:documentation&gt;A non-formatted string of text with an attribute that designates the language of the text. Repeat this object to express the same content in another language.&lt;/xs:documentation&gt;</div><div><span class="" style="white-space:pre">                                </span>&lt;/xs:annotation&gt;</div><div><span class="" style="white-space:pre">                        </span>&lt;/xs:element&gt;</div><div><span class="" style="white-space:pre">                </span>&lt;/xs:sequence&gt;</div><div><span class="" style="white-space:pre">        </span>&lt;/xs:complexType&gt;</div><div><span class="" style="white-space:pre">        </span>&lt;xs:element name=&quot;String&quot; type=&quot;StringType&quot;&gt;</div><div><span class="" style="white-space:pre">                </span>&lt;xs:annotation&gt;</div><div><span class="" style="white-space:pre">                        </span>&lt;xs:documentation&gt;Allows for non-formatted strings that may be translations from other languages, or that may be translatable into other languages. Only one string per language/location type is allowed.&lt;/xs:documentation&gt;</div><div><span class="" style="white-space:pre">                </span>&lt;/xs:annotation&gt;</div><div><span class="" style="white-space:pre">        </span>&lt;/xs:element&gt;</div><div><span class="" style="white-space:pre">        </span>&lt;xs:complexType name=&quot;StringType&quot;&gt;</div><div><span class="" style="white-space:pre">                </span>&lt;xs:annotation&gt;</div><div><span class="" style="white-space:pre">                        </span>&lt;xs:documentation&gt;Allows for non-formatted strings that may be translations from other languages, or that may be translatable into other languages. Only one string per language/location type is allowed. String contains the following attributes, xml:lang to designate the language, isTranslated with a default value of false to designate if an object is a translation of another language, isTranslatable with a default value of true to designate if the content can be translated, translationSourceLanguage to indicate the source languages used in creating this translation, and translationDate.&lt;/xs:documentation&gt;</div><div><span class="" style="white-space:pre">                </span>&lt;/xs:annotation&gt;</div><div><span class="" style="white-space:pre">                </span>&lt;xs:simpleContent&gt;</div><div><span class="" style="white-space:pre">                        </span>&lt;xs:extension base=&quot;xs:string&quot;&gt;</div><div><span class="" style="white-space:pre">                                </span>&lt;xs:attribute ref=&quot;xml:lang&quot;&gt;</div><div><span class="" style="white-space:pre">                                        </span>&lt;xs:annotation&gt;</div><div><span class="" style="white-space:pre">                                                </span>&lt;xs:documentation&gt;Indicates the language of content. Note that xml:lang allows for a simple 2 or 3 character language code or a language code extended by a country code , for example en-au for English as used in Australia.&lt;/xs:documentation&gt;</div><div><span class="" style="white-space:pre">                                        </span>&lt;/xs:annotation&gt;</div><div><span class="" style="white-space:pre">                                </span>&lt;/xs:attribute&gt;</div><div><span class="" style="white-space:pre">                                </span>&lt;xs:attribute name=&quot;isTranslated&quot; type=&quot;xs:boolean&quot; default=&quot;false&quot;&gt;</div><div><span class="" style="white-space:pre">                                        </span>&lt;xs:annotation&gt;</div><div><span class="" style="white-space:pre">                                                </span>&lt;xs:documentation&gt;Indicates whether content is a translation (true) or an original (false).&lt;/xs:documentation&gt;</div><div><span class="" style="white-space:pre">                                        </span>&lt;/xs:annotation&gt;</div><div><span class="" style="white-space:pre">                                </span>&lt;/xs:attribute&gt;</div><div><span class="" style="white-space:pre">                                </span>&lt;xs:attribute name=&quot;isTranslatable&quot; type=&quot;xs:boolean&quot; default=&quot;true&quot;&gt;</div><div><span class="" style="white-space:pre">                                        </span>&lt;xs:annotation&gt;</div><div><span class="" style="white-space:pre">                                                </span>&lt;xs:documentation&gt;Indicates whether content is translatable (true) or not (false). An example of something that is not translatable would be a MNEMONIC of an object or a number.&lt;/xs:documentation&gt;</div><div><span class="" style="white-space:pre">                                        </span>&lt;/xs:annotation&gt;</div><div><span class="" style="white-space:pre">                                </span>&lt;/xs:attribute&gt;</div><div><span class="" style="white-space:pre">                                </span>&lt;xs:attribute name=&quot;translationSourceLanguage&quot; type=&quot;LanguageList&quot; use=&quot;optional&quot;&gt;</div><div><span class="" style="white-space:pre">                                        </span>&lt;xs:annotation&gt;</div><div><span class="" style="white-space:pre">                                                </span>&lt;xs:documentation&gt;List the language or language codes in a space delimited array. The language original may or may not be provided in this bundle of language specific strings.&lt;/xs:documentation&gt;</div><div><span class="" style="white-space:pre">                                        </span>&lt;/xs:annotation&gt;</div><div><span class="" style="white-space:pre">                                </span>&lt;/xs:attribute&gt;</div><div><span class="" style="white-space:pre">                                </span>&lt;xs:attribute name=&quot;translationDate&quot; type=&quot;xs:date&quot; use=&quot;optional&quot;&gt;</div><div><span class="" style="white-space:pre">                                        </span>&lt;xs:annotation&gt;</div><div><span class="" style="white-space:pre">                                                </span>&lt;xs:documentation&gt;The date the content was translated. Provision of translation date allows user to verify if translation was available during data collection or other time linked activity.&lt;/xs:documentation&gt;</div><div><span class="" style="white-space:pre">                                        </span>&lt;/xs:annotation&gt;</div><div><span class="" style="white-space:pre">                                </span>&lt;/xs:attribute&gt;</div><div><span class="" style="white-space:pre">                        </span>&lt;/xs:extension&gt;</div><div><span class="" style="white-space:pre">                </span>&lt;/xs:simpleContent&gt;</div><div><span class="" style="white-space:pre">        </span>&lt;/xs:complexType&gt;</div></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 9, 2014 at 4:16 PM, Jani Hautamäki <span dir="ltr">&lt;<a href="mailto:Jani.Hautamaki@staff.uta.fi" target="_blank">Jani.Hautamaki@staff.uta.fi</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>In DDI-Lifecycle 3.2 all elements which are instances of<br>
<br>
{ddi:reusable:3_2}InternationalStringType<br>
<br>
must have one or more &lt;r:String&gt; elements. <br>
The field-level specification for InternationalStringType<br>
<br>
<a href="http://www.ddialliance.org/Specification/DDI-Lifecycle/3.2/XMLSchema/FieldLevelDocumentation/schemas/reusable_xsd/complexTypes/StringType.html" target="_blank">http://www.ddialliance.org/Specification/DDI-Lifecycle/3.2/XMLSchema/FieldLevelDocumentation/schemas/reusable_xsd/complexTypes/StringType.html</a><br>
<br>
states that<br>
<br>
&quot;Allows for non-formatted strings that may be translations <br>
from other languages, or that may be translatable into <br>
other languages. Only one string per language/location type <br>
is allowed. String contains the following attributes, <br>
xml:lang to designate the language, [...]&quot;<br>
<br>
However, the XML Schema for DDI-Lifecycle 3.2 allows<br>
the elements of r:InternationalStringType to have multiple &lt;r:String&gt;<br>
children without any xml:lang attributes designating language/country/etc.<br>
<br>
For instance, the following XML document is VALID<br>
with respect to DDI-Lifecycle 3.2 XML Schema,<br>
<br>
---8&lt;---8&lt;---8&lt;---<br>
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br>
&lt;ddi:DDIInstance <br>
    xmlns:ddi=&quot;ddi:instance:3_2&quot; <br>
    xmlns:r=&quot;ddi:reusable:3_2&quot; <br>
    xmlns:s=&quot;ddi:studyunit:3_2&quot; <br>
    &gt;<br>
<br>
  &lt;r:Agency&gt;<a href="http://acme.org" target="_blank">acme.org</a>&lt;/r:Agency&gt;<br>
  &lt;r:ID&gt;ddi_instance&lt;/r:ID&gt;<br>
  &lt;r:Version&gt;1&lt;/r:Version&gt;<br>
  &lt;r:URN&gt;urn:ddi:acme.org:another_ddi_instance:1&lt;/r:URN&gt;<br>
<br>
  &lt;s:StudyUnit&gt;<br>
    &lt;r:Agency&gt;<a href="http://acme.org" target="_blank">acme.org</a>&lt;/r:Agency&gt;<br>
    &lt;r:ID&gt;study_unit&lt;/r:ID&gt;<br>
    &lt;r:Version&gt;1&lt;/r:Version&gt;<br>
    <br>
    &lt;r:Citation&gt;<br>
      &lt;r:Title&gt;<br>
        &lt;!-- Use of @xml:lang is optional --&gt;<br>
        &lt;r:String&gt;voisi olla suomeksi&lt;/r:String&gt;<br>
        &lt;r:String&gt;could be in english too&lt;/r:String&gt;<br>
      &lt;/r:Title&gt;<br>
    &lt;/r:Citation&gt;<br>
    <br>
  &lt;/s:StudyUnit&gt;<br>
&lt;/ddi:DDIInstance&gt;<br>
---8&lt;---8&lt;---8&lt;---<br>
<br>
In the document above, the &lt;r:Title&gt; has two &lt;r:String&gt; elements,<br>
both in different language, but without any xml:lang attributes,<br>
sinsce the XML Schema does not require it.<br>
<br>
My question is then:<br>
<br>
Is it a bug in the XML Schema of r:InternationalStringType<br>
that it allows instances of &lt;r:String&gt; without xml:lang attribute?<br>
<br>
If not, which language/country should be assumed for such an element?<br>
Futhermore, when there are two or more &lt;r:String&gt; elements<br>
without the xml:lang attribute, which one of them should be used?<br>
<br>
It is possible to force xml:lang attribute for r:StringType.<br>
However, in my opinion, it might be more desirable to simply </p>
<p>use attribute &quot;lang&quot;  instead &quot;xml:lang&quot; for that purpose...<br>
<br>
</p>
</div>
</div>

<br>_______________________________________________<br>
DDI-users mailing list<br>
<a href="mailto:DDI-users@icpsr.umich.edu">DDI-users@icpsr.umich.edu</a><br>
<a href="http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users" target="_blank">http://lists.icpsr.umich.edu/mailman/listinfo/ddi-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div>Wendy L. Thomas                              Phone: +1 612.624.4389</div><div>Data Access Core Director                 Fax:   +1 612.626.8375</div><div>Minnesota Population Center             Email: <a href="mailto:wlt@umn.edu" target="_blank">wlt@umn.edu</a></div><div>University of Minnesota</div><div>50 Willey Hall</div><div>225 19th Avenue South</div><div>Minneapolis, MN 55455</div></div>
</div>