Problem converting to Oxygen 6.0

Questions about XML that are not covered by the other forums should go here.
PeterRobertson
Posts: 47
Joined: Mon Apr 18, 2005 2:22 pm

Problem converting to Oxygen 6.0

Post by PeterRobertson » Wed May 25, 2005 2:55 pm

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?

sorin_ristache
Posts: 4144
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache » Thu May 26, 2005 11:44 am

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

Post Reply