<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
That function reads the list of attributes straight from the registry file. Can you please check in the registry file that the s-attributes really have been indexed as per your expectations?
<div><br>
</div>
<div>Thanks,</div>
<div><br>
</div>
<div>Andrew.</div>
<div><br>
</div>
<br>
<br>
<br>
Andres Chandia &lt;andres@chandia.net&gt; wrote:<br>
<br>
<br>
<div>Ok, I managed using A, but for B this is what I get :<br>
<table width="100%" class="concordtable">
<tbody>
<tr>
<th class="concordtable">My metadata is embedded in the XML of my corpus!</th>
</tr>
<tr>
<td align="center" colspan="5" class="concordgrey">&nbsp;<br>
No XML annotations found for this corpus. </td>
</tr>
</tbody>
</table>
<br>
and I have indexed all the text attibutes as if they were s-attributes<br>
<br>
<br>
On Sat, December 28, 2013 03:40, Hardie, Andrew wrote:<br>
<style type="text/css">
<!--
-->
</style>
<div class="bodyclass">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D">Hi Andres,</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D">What you are doing wrong, it would seem, is re-using the source data file as the input file for the metadata. This is not how it works.</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D">There are two ways to add metadata:</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D"></span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D"><span style="">A.<span style="font:7.0pt &quot;Times New Roman&quot;">
</span></span></span><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D">From a tab-delimited table file, with one text per line, and fields in columns.
<em>This is the function you are using, and it is resulting in an error message because you are feeding back in the original vertical file, which is not in the expected format</em>.</span></p>
<p class="MsoListParagraph" style="text-indent:-18.0pt"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D"><span style="">B.<span style="font:7.0pt &quot;Times New Roman&quot;">
</span></span></span><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D">From XML in the original data.
<em>This is what you want to do</em>, but in order to do it you need to (a) have indexed all the attributes on the text element as s-attributes, (b) use the function labelled “Create metadata table from corpus XML annotations” – accessed via the button low
 down on the screen labelled “My metadata is embedded in the XML of my corpus!” – instead of the standard function.
</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D">Hope that clarifies.</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D">best</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D"></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D">Andrew.</span></p>
<p class="MsoNormal"><span style="font-size:10.0pt; font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;; color:#1F497D"></span></p>
<p class="MsoNormal"><strong><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></strong><span lang="EN-US" style="font-size:10.0pt; font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> Andres Chandia [mailto:andres@chandia.net]
<br>
<strong>Sent:</strong> 27 December 2013 14:45<br>
<strong>To:</strong> Hardie, Andrew<br>
<strong>Cc:</strong> Open source development of the Corpus WorkBench<br>
<strong>Subject:</strong> problem at managing corpus metadata</span></p>
<p class="MsoNormal"></p>
<p class="MsoNormal">Hi there, so long...<br>
<br>
I have indexed a test corpus and now I'm trying to add some metadata to it but I always got error messages:<br>
<br>
this is what you can find at corpus:<br>
<span class="code"></span><br>
<span class="code"><s id="&quot;1&quot;"></s></span><s id="&quot;1&quot;"><br>
<span class="code">Almosnino almosnino NCMS000</span><br>
<span class="code">, , Fc</span><br>
<span class="code">Moshe moshe NCFS000</span><br>
<span class="code">. . Fp</span><br>
<span class="code">. . Fp</span><br>
<span class="code"></span></s><br>
<span class="code"><s id="&quot;2&quot;"></s></span><s id="&quot;2&quot;"><br>
<span class="code">Regimiento regimiento NCMS000</span><br>
<span class="code">de de SPS00</span><br>
<span class="code">la el DA0FS0</span><br>
<span class="code">vida vida NCFS000</span><br>
<span class="code">. . Fp</span><br>
<span class="code">. . Fp</span><br>
<span class="code"></span></s><br>
<span class="code"><s id="&quot;3&quot;"></s></span><s id="&quot;3&quot;"><br>
<span class="code">Salónica salónica NCFS000</span><br>
<span class="code">1564 1564 Z</span><br>
<span class="code">Transcription transcription NCFS000</span><br>
<span class="code">. . Fp</span><br>
<span class="code">. . Fp</span><br>
<span class="code"></span></s><br>
<span class="code"></span><br>
<br>
I add an image of the settings that I use to install metadata<br>
<br>
and this is what I always got:<br>
<br>
<span class="code">CQPweb encountered an error and could not continue. The data source you specified for the text metadata contains badly-formatted text ID codes, as follows: ','; '.'; ''; ''; ''; ''; ''; ' CQPweb v3.0.7 © 2008-2012 Corpus and tagset help You
 are logged in as user [admin] </span><br>
<br>
but as you can see at the corpus above none of the metadatas contains what the error message says....<br>
<br>
well, I don't know what I'm doing wrong, thanks in advance for your help....<br>
<br>
_______________________<br>
andrés chandía<br>
<a title="This external link will open in a new
window" target="_blank" href="http://www.chandia.net"><span style="border:solid windowtext
1.0pt; padding:0cm; text-decoration:none">[IMAGE REMOVED]</span></a><br>
administrador de<br>
<a title="This external link will
open in a new window" target="_blank" href="http://parles.upf.edu">parles.upf.edu</a><br>
<a title="This external link will open in a new window" target="_blank" href="http://psicoaching.net">psicoaching.net</a><br>
<a title="This external link will open
in a new window" target="_blank" href="http://koyaktumapuche.net">mapuche koyaktu</a><br>
<a title="This external link will open in a new window" target="_blank" href="http://corporacionkoyaktu.net">ong mapuche koyaktu</a><br>
<span style="font-size:18.0pt; font-family:Webdings; color:#4F6228">P </span><span style="font-size:10.0pt; color:#4F6228">No imprima innecesariamente. ¡Cuide el medio ambiente!</span></p>
</div>
</div>
<br>
<br>
<br>
_______________________<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;andrés chandía<br>
<a target="_blank" href="http://www.chandia.net"><img border="0" alt="chandia.net" src="http://www.chandia.net/sites/default/files/images/chandia.netd.png"></a><a target="_blank" href="https://twitter.com/andreschandia"><img src="http://www.upf.edu/universitat/_img/ico_tw.png" alt=""></a><br>
administrador de<br>
<a href="http://parles.upf.edu">parles.upf.edu</a><br>
<a href="http://psicoaching.net">psicoaching.net</a><br>
<a href="http://koyaktumapuche.net">mapuche koyaktu</a><br>
<a href="http://corporacionkoyaktu.net">ong mapuche koyaktu</a><br>
<span style="font-size:18pt; color:rgb(79,98,40); font-family:Webdings">P </span>
<span style="font-size:10pt; color:rgb(79,98,40)">No imprima innecesariamente. ¡Cuide el medio ambiente!</span></div>
</body>
</html>