Page 1 of 1

Problem converting to Oxygen 6.0

Posted: Wed May 25, 2005 2:55 pm
by PeterRobertson
I do not believe this is a particular Oxygen problem.

I have a large number of files making up a complete document. They all start with:

Code: Select all

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.0//EN"
"C:\Program Files\Oxygen 5.1\frameworks\docbook\dtd/docbookx.dtd" [
Do I have to edit every single file to change "5.1" into "6.0", and then do the same again the next time the version changes?

I can see no other way to do this.
- I can't use entities as they seem to have to appear after the dtd.
- I will neither copy nor modify files from the standard distribution.

Is there a workable solution?

Posted: Thu May 26, 2005 11:44 am
by sorin_ristache
Dear Peter,

Generally you should use the system ID as in the templates included in <oXygen/> because it is resolved using the default XML catalog of <oXygen/>. If you open the Templates dialog from the New from templates toolbar button and select the template for Docbook Book you see a system ID pointing to a remote DTD but resolved to a local copy of the DTD using a XML catalog:

Code: Select all


<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.docbook.org/xml/4.4/docbookx.dtd">
For the files that you already created and that contain 5.1 in the system ID you can execute a Replace in Files action on them replacing

Code: Select all


"C:\Program Files\Oxygen 5.1\frameworks\docbook\dtd/docbookx.dtd"
with

Code: Select all


"http://www.docbook.org/xml/4.4/docbookx.dtd"
and making sure the default XML catalog of <oXygen/> is enabled or adding the DocBook catalog to the list of catalogs from user preferences. The DocBook catalog is the file [oXygen-install-dir]/frameworks/docbook/catalog.xml. For instructions about using XML catalogs in <oXygen/> please read the corresponding section in the user manual:

http://www.oxygenxml.com/doc/ug-oxygen/ ... L-Catalogs

Best regards,
Sorin