Oxygen looks for DTD every time I open a file

Having trouble installing Oxygen? Got a bug to report? Post it all here.
SuzeC30
Posts: 2
Joined: Tue Nov 19, 2013 2:41 am

Oxygen looks for DTD every time I open a file

Post by SuzeC30 »

Hello,

I'm new to Oxygen as I've mainly used Xmetal. When I try to open my .dita files in Oxygen, I get an error message that says Oxygen is expecting a dtd in the same folder as my source files. (I get messages for a map.dtd, task.dtd, and concept.dtd.) Is there a setting I can use to set this once, rather than copying my DTDs into each folder containing my source files?

Thanks for your help,
alex_jitianu
Posts: 1016
Joined: Wed Nov 16, 2005 11:11 am

Re: Oxygen looks for DTD every time I open a file

Post by alex_jitianu »

Hello,

Normally Oxygen maps the DITA DTDs to copies from the local file system through catalogs. But you probably have a DITA specialization so the PUBLIC ID of the DTDs doesn't match and so the resources are not resolved. You should add some catalogs entries for those DTDs. A catalog is an XML file with a content like this:

Code: Select all


<?xml version="1.0" encoding="utf-8"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<public publicId="-//OASIS//DTD DITA Concept//EN" uri="concept.dtd" xml:base="dtd/technicalContent/dtd/"></public>
<public publicId="-//OASIS//DTD DITA Topic//EN" uri="topic.dtd" xml:base="dtd/technicalContent/dtd/"></public>
</catalog>
So you put your DTDs into one location and then you use the catalog file to resolve PUBLIC IDs to that location. Next, you have to tell Oxygen to use this catalog, either by putting it in XML Catalog Preferences or in the associated document type (in your case DITA): The Document Type Dialog.

Best regards,
Alex
alex_jitianu
Posts: 1016
Joined: Wed Nov 16, 2005 11:11 am

Re: Oxygen looks for DTD every time I open a file

Post by alex_jitianu »

Hello,

We also have a topic about how to integrate a DITA Specialization: Integration of a DITA Specialization.

Best regards,
Alex
SuzeC30
Posts: 2
Joined: Tue Nov 19, 2013 2:41 am

Re: Oxygen looks for DTD every time I open a file

Post by SuzeC30 »

Great! Thanks for the help. I did a little reading and modified the catalog-dita file and it seemed to work great.

Thanks again
Post Reply