On 18.7.2018 15:28, Christophe Marchand wrote:
I have an XML file, that starts like this :
<!DOCTYPE imported SYSTEM "import.dtd">
In this context import.dzd is relative URI and will be expanded to
something like file:/location/of/xml/file/on/your/machine/import.dtd
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<system systemId="import.dtd"
uri="file:/opt/eu/lefebvre-sarrut/el/workflow/dp48/imported/import-xml.dtd"/>
And as import.dtd is not matching above mentioned absolute URI this
catalog entry will not be used. You have to use systemSuffix entry
instead (see
https://www.oasis-open.org/committees/download.php/14809/xml-catalogs.html#s.systemsuffix)
<systemSuffix systemIdSuffix="import.dtd"
uri="file:/opt/eu/lefebvre-sarrut/el/workflow/dp48/imported/import-xml.dtd"/>