Re: [xml-dev] Difficulties with catalog

From
Jirka Kosek <>
To
Christophe Marchand <>, "" <>
Date
2018-07-18T17:44:01Z
ID
<>
Thread
Re: [xml-dev] Difficulties with catalog
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"/>

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail:       http://xmlguru.cz
------------------------------------------------------------------
     Professional XML and Web consulting and training services
DocBook/DITA customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
    Bringing you XML Prague conference    http://xmlprague.cz
------------------------------------------------------------------