Setting up an XML catalog in my project

This should cover W3C XML Schema, Relax NG and DTD related problems.
4everJang
Posts: 12
Joined: Mon Oct 14, 2013 2:12 pm

Setting up an XML catalog in my project

Post by 4everJang » Fri Feb 07, 2020 10:02 pm

I have a lot of files to convert to DITA, and all of them are referring to the same DTD using a public as well as system ID, like this:
<!DOCTYPE ifu PUBLIC "-//DOSCO BRAHMS//DTD IFU R5//EN"
"ifu.dtd" [

I am trying to get oXygen to find the right DTD via the Public ID but I fail to see how that should work. I tried to play around with the document type association settings but there are too many for me to figure out what I need to set. If someone has done this before, please give me the steps. I need to get this set up soon as I need to run several 100 transforms before the weekend is over and the XML files are in all kinds of different directories with references to image files etc. being local. So moving the files is not an option, neither is copying the DTD (which pulls in a ton of entity files). I just need to know how to 1) map the Public ID to a specific file location and 2) make oXygen use that Public ID mapping.

Thanks anyone for a quick reply

4eveJang

Radu
Posts: 6811
Joined: Fri Jul 09, 2004 5:18 pm

Re: Setting up an XML catalog in my project

Post by Radu » Mon Feb 10, 2020 11:45 am

Hi Jang,

If you have an XML catalog file "catalog.xml" already available along with the DTDs, you can add a reference to it in the Oxygen Preferences->"XML / XML Catalog" page and afterwards all XSLT transformations should use it.
Otherwise, create your own "catalog.xml" in the same folder with the "ifu.dtd" with the content:

Code: Select all

<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
    <public publicId="-//DOSCO BRAHMS//DTD IFU R5//EN" uri="ifu.dtd"/>
</catalog>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply