Bug #2520
RCP: 0.7.9, CQP recursive structures management in conflict with some structure names given in sources, for all XML based import modules
Statut: | New | Début: | 20/03/2019 | |
---|---|---|---|---|
Priorité: | Normal | Echéance: | ||
Assigné à: | - | % réalisé: | 0% |
|
Catégorie: | Import | Temps passé: | - | |
Version cible: | TXM 0.8.4 |
Description
Currently CQP manages tag recursion by renaming nested tags (and attributes) with a suffix index: tag/tag/tag -> tag/tag1/tag2.
So in TEI context, cwb-encode renames nested div tags with div1, div2, etc. depending on the depth of the div.
If the sources contain div1 or div2, etc. tags, there is a name conflict, at least in the declaration of the structures in the REGISTRY:
attributes:setup_attribute(): Warning: Attribute div1 of type Structural Attribute already defined in corpus teig REGISTRY ERROR (../registry/teig): Structure attribute div1 declared twice -- semantic error REGISTRY ERROR (../registry/teig): Parse Error.
extract of the registry file:
$ grep -i div1 ../registry/teig # <div1 n=".."> ... </div1> STRUCTURE div1 STRUCTURE div1_n # [annotations] # (3 levels of embedding: <div>, <div1>, <div2>, <div3>). STRUCTURE div1
-> and the corpus is not useable.
Solution 0¶
Always use the 'div0123456todiv.xsl' XSLT stylesheet in the 2-front step of XTZ for XML-TEI encoded sources.
Solution 1¶
Don't declare structures twice.
Solution 2¶
Re-implement recursion management to prevent such conflicts.
Historique
#1 Mis à jour par Serge Heiden il y a plus de 4 ans
- Description mis à jour (diff)
#2 Mis à jour par Matthieu Decorde il y a plus de 4 ans
- Version cible changé de TXM 0.8.2 à TXM 0.8.4