<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>Hi, Jörgi,</div>
<div><br>
</div>
<div>Is the prefix xsi in your record bound to the same namespace URI as in the XSLT?</div>
<div><br>
</div>
<div><span class="Apple-tab-span" style="white-space:pre"></span><span class="pl-e">xmlns</span><span class="pl-e">:</span><span class="pl-e">xsi</span>=<span class="pl-s"><span class="pl-pds">"</span>http://www.w3.org/2001/XMLSchema-instance<span class="pl-pds">”</span></span></div>
<div><span class="pl-s"><span class="pl-pds"><br>
</span></span></div>
<div>Otherwise can you send me/point me to an example CMD record you want to convert.</div>
<div><span class="pl-s"><span class="pl-pds"><br>
</span></span></div>
<div><span class="pl-s"><span class="pl-pds">Best,</span></span></div>
<div><br>
</div>
<div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri">Menzo</font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri">--</font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri"><font face="Calibri,sans-serif">The Language Archive </font>–<font face="Calibri,sans-serif"> tla.mpi.nl</font></font></font></div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>Jörg Knappen <<a href="mailto:jknappen@web.de">jknappen@web.de</a>><br>
<span style="font-weight:bold">Date: </span>Monday 15 February 2016 at 18:43<br>
<span style="font-weight:bold">To: </span>Menzo Windhouwer <<a href="mailto:menzo.windhouwer@mpi.nl">menzo.windhouwer@mpi.nl</a>><br>
<span style="font-weight:bold">Cc: </span>Dieter van Uytvanck <<a href="mailto:dieter@clarin.eu">dieter@clarin.eu</a>>, developers list CLARIN <<a href="mailto:dev@lists.clarin.eu">dev@lists.clarin.eu</a>><br>
<span style="font-weight:bold">Subject: </span>Aw: Re: [Dev] Metadata modelling question<br>
</div>
<div><br>
</div>
<div>
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div>Hi all,</div>
<div> </div>
<div>I am halfway on the way of debugging olac2cmdi.xsl ...</div>
<div> </div>
<div>The bug affects all versions of olac2cmdi I have retrieved so far.</div>
<div> </div>
<div>What I know by now is:</div>
<div> </div>
<div>
<div>(a) The template  <xsl:template match="dc:contributor"> is really used (and not overridden by the default template)</div>
<div>(b) By replacing the <xsl:if> with an <xsl:choose><xsl:when> construction if found out that the outer if</div>
<div> </div>
<div>
<div>      <xsl:if test="@xsi:type='olac:role'"></div>
<div> </div>
<div>evaluates to false even if the input files looks like my example file, i.e.,</div>
<div> </div>
<div>      <span id="OLK_SRC_BODY_SECTION"><dc:contributor xsi:type="olac:role" olac:code="compiler">Con, Tributor</dc:contributor></span></div>
<div> </div>
<div><span>I currently don't understand why it is going wrong here. Ideas?</span></div>
<div> </div>
<div><span>Greetings from Saarbrücken,</span></div>
<div> </div>
<div><span>Jörg</span></div>
<div> </div>
</div>
<div> </div>
</div>
<div> 
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Freitag, 12. Februar 2016 um 17:35 Uhr<br>
<b>Von:</b> "Windhouwer, Menzo" <<a href="mailto:Menzo.Windhouwer@mpi.nl">Menzo.Windhouwer@mpi.nl</a>><br>
<b>An:</b> "Dieter Van Uytvanck" <<a href="mailto:dieter@clarin.eu">dieter@clarin.eu</a>>, "CLARIN EU developers" <<a href="mailto:dev@lists.clarin.eu">dev@lists.clarin.eu</a>><br>
<b>Betreff:</b> Re: [Dev] Metadata modelling question</div>
<div name="quoted-content">
<div style="color: rgb(0,0,0);font-size: 14.0px;font-family: Calibri , sans-serif;">
<div>
<div>Hi Jörg,</div>
<div> </div>
<div>If so, you might try</div>
<div> </div>
<div><a href="https://github.com/TheLanguageArchive/oai-harvest-manager/blob/master/src/main/resources/olac2cmdi.xsl" target="_blank">https://github.com/TheLanguageArchive/oai-harvest-manager/blob/master/src/main/resources/olac2cmdi.xsl</a></div>
<div> </div>
<div>which is newer and actively maintained. Fixes (or bug reports ;-) are welcome!</div>
<div> </div>
<div>Best,</div>
<div> </div>
<div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri">Menzo</font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri">--</font></font></div>
<div><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri"><font face="Calibri,sans-serif">The Language Archive </font>–<font face="Calibri,sans-serif"> tla.mpi.nl</font></font></font></div>
</div>
</div>
<div> </div>
<div style="font-family: Calibri;font-size: 11.0pt;text-align: left;color: black;BORDER-BOTTOM: medium none;BORDER-LEFT: medium none;PADDING-BOTTOM: 0.0in;PADDING-LEFT: 0.0in;PADDING-RIGHT: 0.0in;BORDER-TOP: rgb(181,196,223) 1.0pt solid;BORDER-RIGHT: medium none;PADDING-TOP: 3.0pt;">
<span id="OLK_SRC_BODY_SECTION"><span style="font-weight: bold;">From: </span><<a href="dev-bounces@lists.clarin.eu" target="_parent">dev-bounces@lists.clarin.eu</a>> on behalf of Dieter van Uytvanck <<a href="dieter@clarin.eu" target="_parent">dieter@clarin.eu</a>><br>
<span style="font-weight: bold;">Date: </span>Friday 12 February 2016 at 17:28<br>
<span style="font-weight: bold;">To: </span>developers list CLARIN <<a href="dev@lists.clarin.eu" target="_parent">dev@lists.clarin.eu</a>><br>
<span style="font-weight: bold;">Subject: </span>Re: [Dev] Metadata modelling question</span></div>
<div> </div>
<div>
<div>
<div>
<div>
<div>
<div>
<div><span id="OLK_SRC_BODY_SECTION">Hi Jörg,</span><br>
 </div>
<span id="OLK_SRC_BODY_SECTION">are you using <a href="https://infra.clarin.eu/cmd/xslt/olac2cmdi.xsl" target="_blank">
https://infra.clarin.eu/cmd/xslt/olac2cmdi.xsl</a> ? Since it should recognize the role (if I look at the code).</span><br>
 </div>
<span id="OLK_SRC_BODY_SECTION">If you're using that version there must be a bug in the XSLT, hope you can track it down!</span><br>
 </div>
<span id="OLK_SRC_BODY_SECTION">best,</span></div>
<span id="OLK_SRC_BODY_SECTION">Dieter</span></div>
<div class="gmail_extra"> 
<div class="gmail_quote"><span id="OLK_SRC_BODY_SECTION">On Fri, Feb 12, 2016 at 4:57 PM, "Jörg Knappen"
<span><<a href="jknappen@web.de" target="_parent">jknappen@web.de</a>></span> wrote:</span>
<blockquote class="gmail_quote" style="margin: 0 0 0 0.8ex;border-left: 1.0px rgb(204,204,204) solid;padding-left: 1.0ex;">
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div><span id="OLK_SRC_BODY_SECTION">In our current curation project, I got some really nice and fine grained DC metadata with several orles of the</span></div>
<div><span id="OLK_SRC_BODY_SECTION">contributors differentiated like this:</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div>
<div><span id="OLK_SRC_BODY_SECTION"><dc:contributor xsi:type="olac:role" olac:code="compiler">Con, Tributor</dc:contributor><br>
<dc:contributor xsi:type="olac:role" olac:code="depositor">Con, Tributor</dc:contributor></span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION">The olac2cmdi XSLT script just removes the subdivisions of the contributors, leaving only levelled out information</span></div>
<div><span id="OLK_SRC_BODY_SECTION">like this:</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div>
<div><span id="OLK_SRC_BODY_SECTION">     <OLAC-DcmiTerms></span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
</div>
<div>
<div><span id="OLK_SRC_BODY_SECTION">         <contributor>Con, Tributor</contributor><br>
         <contributor>Con, Tributor</contributor></span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div>
<div><span id="OLK_SRC_BODY_SECTION">     </OLAC-DcmiTerms></span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION">Thus, some information from the DC metadata is lost in the resulting CMDI.</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION">So, my questions are:</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION">1. Should I care about the information loss? Is the information relevant for further processing in the VLO?</span></div>
<div><span id="OLK_SRC_BODY_SECTION">2. If I should care, what should I do?</span></div>
<div><span id="OLK_SRC_BODY_SECTION">3. If I don't care, should I remove duplicate lines from the CMDI metadata?</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION">Greetings from Saarbrücken,</span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span class="HOEnZb"><font color="#888888"> </font></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span class="HOEnZb"><font color="#888888">Jörg Knappen</font></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span class="HOEnZb"><font color="#888888"> </font></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span class="HOEnZb"><font color="#888888"> </font></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span class="HOEnZb"><font color="#888888"> </font></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span class="HOEnZb"><font color="#888888"> </font></span></span></div>
</div>
</div>
</div>
</div>
</div>
<br>
<span id="OLK_SRC_BODY_SECTION">_______________________________________________<br>
Dev mailing list<br>
<a href="Dev@lists.clarin.eu" target="_parent">Dev@lists.clarin.eu</a><br>
<a href="https://lists.clarin.eu/cgi-bin/mailman/listinfo/dev" target="_blank">https://lists.clarin.eu/cgi-bin/mailman/listinfo/dev</a></span><br>
 </blockquote>
<span id="OLK_SRC_BODY_SECTION"></span></div>
<br>
<br clear="all">
<br>
<span id="OLK_SRC_BODY_SECTION">-- </span>
<div class="gmail_signature">
<div>
<div>
<div><span id="OLK_SRC_BODY_SECTION"><span style="color: rgb(136,136,136);">Dieter Van Uytvanck</span><br style="color: rgb(136,136,136);">
<span style="color: rgb(136,136,136);">Technical Director CLARIN ERIC</span><br style="color: rgb(136,136,136);">
<a href="http://www.clarin.eu/" style="color: rgb(17,85,204);" target="_blank">www.clarin.eu</a><span style="color: rgb(136,136,136);"> | tel. </span><a style="color: rgb(17,85,204);">+31-(0)850091363</a><span style="color: rgb(136,136,136);"> | skype: dietervu.mpi</span></span></div>
</div>
</div>
</div>
<span id="OLK_SRC_BODY_SECTION"></span></div>
</div>
</div>
_______________________________________________ Dev mailing list <a href="mailto:Dev@lists.clarin.eu">
Dev@lists.clarin.eu</a> <a href="https://lists.clarin.eu/cgi-bin/mailman/listinfo/dev" target="_blank">
https://lists.clarin.eu/cgi-bin/mailman/listinfo/dev</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</span>
</body>
</html>