Bug #1541

RCP: 0.7.7, bad default directory for DTD in XML/w+CSV

Ajouté par Serge Heiden il y a environ 10 ans. Mis à jour il y a plus de 6 ans.

Statut:New Début:30/09/2015
Priorité:Normal Echéance:
Assigné à:- % réalisé:

0%

Catégorie:Import Temps passé: -
Version cible:TXM 0.X.X

Description

Currently, in the XML/w+CSV import module if an XML file asks for a DTD to be validated, TXM looks for the DTD in the user home directory.

For example:

Execution du script : /home/sheiden/TXM/scripts/import/xmlLoader.groovy
Trying to read import properties file: /home/sheiden/Corpus/src/cmd/import.properties
-- Apply xsl /home/sheiden/TXM/xsl/txm-filter-teip5-xmlw-preserve.xsl with parameters: {}
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[3,62]
Message: /home/sheiden/abbreviations_french.dtd (Aucun fichier ou dossier de ce type)
src file /home/sheiden/Corpus/src/cmd/CMD-FR 1-622-20152309_TXM.xml, is not xml valid

TXM should at least look for the DTD in the same directory as the XML file.

Solution 1

Change the default directory where the XML processor will look for DTDs to the directory where the XML source files are processed.

Solution 2

Add a DTD management component to add DTD directories and DTD files, and declare their path to XML processors.

See also:
  • ticket #325
  • the XML editor plugin which implements an UI for DTD management

Historique

#1 Mis à jour par Sebastien Jacquot il y a plus de 7 ans

  • Version cible changé de TXM 0.8.0a (split/restructuration) à TXM 0.8.0

#2 Mis à jour par Matthieu Decorde il y a plus de 6 ans

  • Version cible changé de TXM 0.8.0 à TXM 0.X.X

Formats disponibles : Atom PDF