<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Jani,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">I looked at your proposed change of the XML Schema and made test instances. It doesn&#8217;t resolve the issue. An instance can still have two URNs or two sets of
 the identifier sequence (or URN or set of identifier sequence or both which is fine).<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">It is really the fact that the XML Schema expression possibilities have limitations, like Wendy described.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">As a general remark: the DDI spec is the combination of XML Schema and the documentation. Sometimes the XML Schema cannot express all desired things. Then the
 documentation is important. Even if the documentation could sometimes be better. Any hints for improving the documentation and contributions to it would be appreciated.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D">Achim<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> ddi-users-bounces@icpsr.umich.edu [mailto:ddi-users-bounces@icpsr.umich.edu]
<b>On Behalf Of </b>Jani Hautamäki<br>
<b>Sent:</b> Mittwoch, 3. Dezember 2014 23:16<br>
<b>To:</b> ddi-users@icpsr.umich.edu<br>
<b>Subject:</b> [DDI-users] DDI 3.2: Schema allows double identification sequence<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div id="divtagdefaultwrapper">
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black">In DDI-Lifecycle 3.2 the narrative documentation
<br>
<br>
<a href="http://www.ddialliance.org/Specification/DDI-Lifecycle/3.2/XMLSchema/FieldLevelDocumentation/schemas/reusable_xsd/complexTypes/AbstractIdentifiableType.html" id="lnk103594">http://www.ddialliance.org/Specification/DDI-Lifecycle/3.2/XMLSchema/FieldLevelDocumentation/schemas/reusable_xsd/complexTypes/AbstractIdentifiableType.html</a><br>
<br>
for the type<br>
<br>
{ddi:reusable:3_2}AbstractIdentifiableType<br>
<br>
states that<br>
<br>
&quot;An entity can either be identified either by a URN and/or an identification <br>
sequence. At a minimum, one or the other is required. &quot;<br>
<br>
However, according to the XML Schema, the following XML document is valid.<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; &gt;<br>
&nbsp;&nbsp; &nbsp;<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; <br>
&nbsp; &lt;r:Agency&gt;acme.org&lt;/r:Agency&gt;<br>
&nbsp; &lt;r:ID&gt;another_ddi_instance&lt;/r:ID&gt;<br>
&nbsp; &lt;r:Version&gt;2&lt;/r:Version&gt;<br>
&nbsp; <br>
&lt;/ddi:DDIInstance&gt;<br>
---8&lt;---8&lt;---8&lt;---<br>
<br>
This is invalid according to specification, but the restriction<br>
is not expressed formally with XML Schema.<br>
<br>
My question is then:<br>
<br>
Is this a mistake/bug in the XML Schema? (If not, please explain why<br>
it is better to formally allow such invalid documents?)<br>
<br>
The XML Schema language allows one to express formally the restriction <br>
&quot;either one or both&quot;. The details are laid down, for instance, in the answer<br>
<a href="http://stackoverflow.com/questions/9863056/xsd-schema-either-one-or-both">http://stackoverflow.com/questions/9863056/xsd-schema-either-one-or-both</a><br>
<br>
Here's a patch for the file &quot;reusable.xsd&quot; that is included in the current<br>
distribution package of the DDI-Lifecycle 3.2:<o:p></o:p></span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><a href="http://www.pastebucket.com/72481" id="lnk541388">http://www.pastebucket.com/72481</a><o:p></o:p></span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
<p style="background:white"><span style="font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:black"><o:p>&nbsp;</o:p></span></p>
</div>
</div>
</body>
</html>