<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div>I have the following lines in my file:</div>
<div> </div>
<div>
<div><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"<br/>
xmlns:dc="http://purl.org/dc/elements/1.1/"<br/>
xmlns:dcterms="http://purl.org/dc/terms/"<br/>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance#"<br/>
xmlns:olac="http://www.language-archives.org/OLAC/1.0/" ></div>
<div> </div>
<div>so there is the namespace assigned to xsi, but with a concluding "#". Removing that "#" makes the transform work!</div>
<div> </div>
<div>Many thanks, Menzo!</div>
<div> </div>
<div>Greetings from Saarbrücken,</div>
<div> </div>
<div>Jörg</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> Montag, 15. Februar 2016 um 18:53 Uhr<br/>
<b>Von:</b> "Windhouwer, Menzo" <Menzo.Windhouwer@mpi.nl><br/>
<b>An:</b> "Jörg Knappen" <jknappen@web.de><br/>
<b>Cc:</b> "Dieter Van Uytvanck" <dieter@clarin.eu>, "CLARIN EU developers" <dev@lists.clarin.eu><br/>
<b>Betreff:</b> Re: Aw: 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örgi,</div>
<div> </div>
<div>Is the prefix xsi in your record bound to the same namespace URI as in the XSLT?</div>
<div> </div>
<div><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><a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a><span class="pl-pds">”</span></span></div>
<div> </div>
<div>Otherwise can you send me/point me to an example CMD record you want to convert.</div>
<div> </div>
<div><span class="pl-s"><span class="pl-pds">Best,</span></span></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>Jörg Knappen <<a href="jknappen@web.de" target="_parent">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="menzo.windhouwer@mpi.nl" target="_parent">menzo.windhouwer@mpi.nl</a>><br/>
<span style="font-weight: bold;">Cc: </span>Dieter van Uytvanck <<a href="dieter@clarin.eu" target="_parent">dieter@clarin.eu</a>>, developers list CLARIN <<a href="dev@lists.clarin.eu" target="_parent">dev@lists.clarin.eu</a>><br/>
<span style="font-weight: bold;">Subject: </span>Aw: Re: [Dev] Metadata modelling question</span></div>
<div> </div>
<div>
<div>
<div style="font-family: Verdana;font-size: 12.0px;">
<div>
<div><span id="OLK_SRC_BODY_SECTION">Hi all,</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION">I am halfway on the way of debugging olac2cmdi.xsl ...</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION">The bug affects all versions of olac2cmdi I have retrieved so far.</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION">What I know by now is:</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div>
<div><span id="OLK_SRC_BODY_SECTION">(a) The template <xsl:template match="dc:contributor"> is really used (and not overridden by the default template)</span></div>
<div><span id="OLK_SRC_BODY_SECTION">(b) By replacing the <xsl:if> with an <xsl:choose><xsl:when> construction if found out that the outer if</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div>
<div><span id="OLK_SRC_BODY_SECTION"> <xsl:if test="@xsi:type='olac:role'"></span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION">evaluates to false even if the input files looks like my example file, i.e.,</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION"> <span id="OLK_SRC_BODY_SECTION"><dc:contributor xsi:type="olac:role" olac:code="compiler">Con, Tributor</dc:contributor></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span>I currently don't understand why it is going wrong here. Ideas?</span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span>Greetings from Saarbrücken,</span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span>Jörg</span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
</div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
</div>
<div><span id="OLK_SRC_BODY_SECTION"> </span>
<div style="margin: 10.0px 5.0px 5.0px 10.0px;padding: 10.0px 0 10.0px 10.0px;border-left: 2.0px solid rgb(195,217,229);">
<div style="margin: 0 0 10.0px 0;"><span id="OLK_SRC_BODY_SECTION"><b>Gesendet:</b> Freitag, 12. Februar 2016 um 17:35 Uhr<br/>
<b>Von:</b> "Windhouwer, Menzo" <<a href="Menzo.Windhouwer@mpi.nl" target="_parent">Menzo.Windhouwer@mpi.nl</a>><br/>
<b>An:</b> "Dieter Van Uytvanck" <<a href="dieter@clarin.eu" target="_parent">dieter@clarin.eu</a>>, "CLARIN EU developers" <<a href="dev@lists.clarin.eu" target="_parent">dev@lists.clarin.eu</a>><br/>
<b>Betreff:</b> Re: [Dev] Metadata modelling question</span></div>
<div>
<div style="color: rgb(0,0,0);font-size: 14.0px;font-family: Calibri , sans-serif;">
<div>
<div><span id="OLK_SRC_BODY_SECTION">Hi Jörg,</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION">If so, you might try</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION"><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></span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION">which is newer and actively maintained. Fixes (or bug reports ;-) are welcome!</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div><span id="OLK_SRC_BODY_SECTION">Best,</span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div>
<div><span id="OLK_SRC_BODY_SECTION"><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri">Menzo</font></font></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><font class="Apple-style-span" color="#000000"><font class="Apple-style-span" face="Calibri">--</font></font></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><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></span></div>
</div>
</div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></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 id="OLK_SRC_BODY_SECTION"><span style="font-weight: bold;">From: </span><<a>dev-bounces@lists.clarin.eu</a>> on behalf of Dieter van Uytvanck <<a>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>dev@lists.clarin.eu</a>><br/>
<span style="font-weight: bold;">Subject: </span>Re: [Dev] Metadata modelling question</span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"> </span></div>
<div>
<div>
<div>
<div>
<div>
<div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">Hi Jörg,</span><br/>
</span></div>
<span id="OLK_SRC_BODY_SECTION"><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/>
</span></div>
<span id="OLK_SRC_BODY_SECTION"><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/>
</span></div>
<span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">best,</span></span></div>
<span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">Dieter</span></span></div>
<div class="gmail_extra"><span id="OLK_SRC_BODY_SECTION"> </span>
<div class="gmail_quote"><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">On Fri, Feb 12, 2016 at 4:57 PM, "Jörg Knappen" <span><<a>jknappen@web.de</a>></span> wrote:</span> </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"><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></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">contributors differentiated like this:</span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"> </span></span></div>
<div>
<div><span id="OLK_SRC_BODY_SECTION"><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></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"> </span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">The olac2cmdi XSLT script just removes the subdivisions of the contributors, leaving only levelled out information</span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">like this:</span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"> </span></span></div>
<div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"> <OLAC-DcmiTerms></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"> </span></span></div>
</div>
<div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"> <contributor>Con, Tributor</contributor><br/>
<contributor>Con, Tributor</contributor></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"> </span></span></div>
<div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"> </OLAC-DcmiTerms></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"> </span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">Thus, some information from the DC metadata is lost in the resulting CMDI.</span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"> </span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">So, my questions are:</span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"> </span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><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></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">2. If I should care, what should I do?</span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">3. If I don't care, should I remove duplicate lines from the CMDI metadata?</span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"> </span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">Greetings from Saarbrücken,</span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"><span class="HOEnZb"><font color="#888888"> </font></span></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"><span class="HOEnZb"><font color="#888888">Jörg Knappen</font></span></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"><span class="HOEnZb"><font color="#888888"> </font></span></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"><span class="HOEnZb"><font color="#888888"> </font></span></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"><span class="HOEnZb"><font color="#888888"> </font></span></span></span></div>
<div><span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION"><span class="HOEnZb"><font color="#888888"> </font></span></span></span></div>
</div>
</div>
</div>
</div>
</div>
<br/>
<span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">_______________________________________________<br/>
Dev mailing list<br/>
<a>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/>
</span></blockquote>
<span id="OLK_SRC_BODY_SECTION"> </span></div>
<br/>
<br clear="all"/>
<br/>
<span id="OLK_SRC_BODY_SECTION"><span id="OLK_SRC_BODY_SECTION">-- </span> </span>
<div class="gmail_signature">
<div>
<div>
<div><span id="OLK_SRC_BODY_SECTION"><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></span></div>
</div>
</div>
</div>
<span id="OLK_SRC_BODY_SECTION"> </span></div>
</div>
</div>
<span id="OLK_SRC_BODY_SECTION">_______________________________________________ Dev mailing list <a href="Dev@lists.clarin.eu" target="_parent"> 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></span></div>
</div>
</div>
<span id="OLK_SRC_BODY_SECTION"> </span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></body></html>