Page 1 of 1
Oxygen looks for DTD every time I open a file
Posted: Tue Nov 19, 2013 2:47 am
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,
Re: Oxygen looks for DTD every time I open a file
Posted: Tue Nov 19, 2013 11:02 am
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
Re: Oxygen looks for DTD every time I open a file
Posted: Tue Nov 19, 2013 12:07 pm
by alex_jitianu
Hello,
We also have a topic about how to integrate a DITA Specialization:
Integration of a DITA Specialization.
Best regards,
Alex
Re: Oxygen looks for DTD every time I open a file
Posted: Wed Nov 20, 2013 3:44 am
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