<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" 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>
http://www.ddialliance.org/Specification/DDI-Lifecycle/3.2/XMLSchema/FieldLevelDocumentation/schemas/reusable_xsd/complexTypes/StringType.html<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>
&nbsp;&nbsp;&nbsp; xmlns:ddi=&quot;ddi:instance:3_2&quot; <br>
&nbsp;&nbsp;&nbsp; xmlns:r=&quot;ddi:reusable:3_2&quot; <br>
&nbsp;&nbsp;&nbsp; xmlns:s=&quot;ddi:studyunit:3_2&quot; <br>
&nbsp;&nbsp;&nbsp; &gt;<br>
<br>
&nbsp; &lt;r:Agency&gt;acme.org&lt;/r:Agency&gt;<br>
&nbsp; &lt;r:ID&gt;ddi_instance&lt;/r:ID&gt;<br>
&nbsp; &lt;r:Version&gt;1&lt;/r:Version&gt;<br>
&nbsp; &lt;r:URN&gt;urn:ddi:acme.org:another_ddi_instance:1&lt;/r:URN&gt;<br>
<br>
&nbsp; &lt;s:StudyUnit&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;r:Agency&gt;acme.org&lt;/r:Agency&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;r:ID&gt;study_unit&lt;/r:ID&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;r:Version&gt;1&lt;/r:Version&gt;<br>
&nbsp;&nbsp; &nbsp;<br>
&nbsp;&nbsp;&nbsp; &lt;r:Citation&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;r:Title&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- Use of @xml:lang is optional --&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;r:String&gt;voisi olla suomeksi&lt;/r:String&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;r:String&gt;could be in english too&lt;/r:String&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/r:Title&gt;<br>
&nbsp;&nbsp;&nbsp; &lt;/r:Citation&gt;<br>
&nbsp;&nbsp; &nbsp;<br>
&nbsp; &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; &nbsp;instead &quot;xml:lang&quot; for that purpose...<br>
<br>
</p>
</div>
</body>
</html>