Bug #1541

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

Added by Serge Heiden almost 8 years ago. Updated over 4 years ago.

Status:New Start date:09/30/2015
Priority:Normal Due date:
Assignee:- % Done:


Category:Import Spent time: -
Target version:TXM X.X


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


#1 Updated by Sebastien Jacquot about 5 years ago

  • Target version changed from TXM 0.8.0a (split/restructuration) to TXM 0.8.0

#2 Updated by Matthieu Decorde over 4 years ago

  • Target version changed from TXM 0.8.0 to TXM X.X

Also available in: Atom PDF