Bug #2252

Mis à jour par Matthieu Decorde il y a plus de 4 ans

*Diagnostic*

If source files have the following structure, the creation of text identifiers fails and some functions (as back-to-text) are unavailable

<pre>
<TEI>
<div> some text </div>
<div> in divs </div>
</TEI>
</pre>

gives
<pre>
<?xml version="1.0" encoding="UTF-8"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xmlns:txm="http://textometrie.org/1.0">
<teiHeader>...</teiHeader><div>
<text id="tei"><w id="w_tei_1"><txm:form>some</txm:form><txm:ana resp="#txm" type="#enpos">DT</txm:ana><txm:ana resp="#txm" type="#enlemma">some</txm:ana><txm:ana resp="#src" type="#n">1</txm:ana></w>
<w id="w_tei_2"><txm:form>text</txm:form><txm:ana resp="#txm" type="#enpos">NN</txm:ana><txm:ana resp="#txm" type="#enlemma">text</txm:ana><txm:ana resp="#src" type="#n">2</txm:ana></w>
</text>
<div>
<w id="w_tei_3"><txm:form>in</txm:form><txm:ana resp="#txm" type="#enpos">IN</txm:ana><txm:ana resp="#txm" type="#enlemma">in</txm:ana><txm:ana resp="#src" type="#n">3</txm:ana></w>
<w id="w_tei_4"><txm:form>divs</txm:form><txm:ana resp="#txm" type="#enpos">NNS</txm:ana><txm:ana resp="#txm" type="#enlemma">div</txm:ana><txm:ana resp="#src" type="#n">4</txm:ana></w>
</div>
</div></TEI>
</pre>
*Solution*

The XML/w import module must be XML schema agnostic: no particular XML element should be supposed to be present in the source for the module to work.

Retour