<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 <r:String> 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>
"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, [...]"<br>
<br>
However, the XML Schema for DDI-Lifecycle 3.2 allows<br>
the elements of r:InternationalStringType to have multiple <r:String><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<---8<---8<---<br>
<?xml version="1.0" encoding="utf-8"?><br>
<ddi:DDIInstance <br>
xmlns:ddi="ddi:instance:3_2" <br>
xmlns:r="ddi:reusable:3_2" <br>
xmlns:s="ddi:studyunit:3_2" <br>
><br>
<br>
<r:Agency>acme.org</r:Agency><br>
<r:ID>ddi_instance</r:ID><br>
<r:Version>1</r:Version><br>
<r:URN>urn:ddi:acme.org:another_ddi_instance:1</r:URN><br>
<br>
<s:StudyUnit><br>
<r:Agency>acme.org</r:Agency><br>
<r:ID>study_unit</r:ID><br>
<r:Version>1</r:Version><br>
<br>
<r:Citation><br>
<r:Title><br>
<!-- Use of @xml:lang is optional --><br>
<r:String>voisi olla suomeksi</r:String><br>
<r:String>could be in english too</r:String><br>
</r:Title><br>
</r:Citation><br>
<br>
</s:StudyUnit><br>
</ddi:DDIInstance><br>
---8<---8<---8<---<br>
<br>
In the document above, the <r:Title> has two <r:String> 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 <r:String> 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 <r:String> 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 "lang" instead "xml:lang" for that purpose...<br>
<br>
</p>
</div>
</body>
</html>