[Home] [By Thread] [By Date] [Recent Entries]

  • From: Jirka Kosek <jirka@k...>
  • To: Christophe Marchand <cmarchand@o...>,"xml-dev@l..." <xml-dev@l...>
  • Date: Wed, 18 Jul 2018 19:44:01 +0200

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: jirka@k...      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
------------------------------------------------------------------

Attachment: signature.asc
Description: OpenPGP digital signature



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member