DocBook4.1 validation

This should cover W3C XML Schema, Relax NG and DTD related problems.
jspychka
Posts: 30

DocBook4.1 validation

Tue Sep 18, 2012 9:48 pm

Hello,

I'm having a similar issue. My doc type declaration is:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">

But the document won't parse and I keep getting the following timeout error:

F [Xerces] HttpException-The host did not accept the connection within timeout of 20000 ms (http://www.oasis-open.org/docbook/xml/4 ... cbookx.dtd) when trying to display Author mode.

And

SystemID: /Users/jspychka/Documents/_Taleo/svn/reportinganalyticsdoc800/trunk/universedictionaries/staffing/DictionaryGenerator_v100_StaffingReportingUniverse.xml
Engine name: Saxon6.5.5
Severity: error
Description: The host did not accept the connection within timeout of 20000 ms (http://www.oasis-open.org/docbook/xml/4 ... cbookx.dtd)

when trying to generate a PDF from the out of the box DocBook PDF transformation.

Any ideas on how to fix?

Thanks,

John
sorin_ristache
Posts: 4144

Re: DocBook4.1 validation

Wed Sep 19, 2012 12:44 pm

Hi,

It seems the www.oasis-open.org server is busy. You can avoid this HTTP connection error by mapping the URL of this remote DocBook 4.1.2 DTD to a local copy of the same DTD using the built-in DocBook XML catalog of Oxygen, that is the file [Oxygen-install-dir]/frameworks/docbook/catalog.xml. This XML catalog already maps the DocBook DTDs and XSDs for versions 4.2 up to 5.0 to their local copies that come with the Oxygen install kit, but for older versions like 4.1.2 you have to add the mapping to the DocBook XML catalog manually. Just add the element:

Code: Select all

  <rewriteSystem
    systemIdStartString="http://www.oasis-open.org/docbook/xml/4.1.2/"
    rewritePrefix="4.1.2/dtd/"/>


in the XML catalog file [Oxygen-install-dir]/frameworks/docbook/catalog.xml and add all the 4.1.2 DTD files in a new directory [Oxygen-install-dir]/frameworks/docbook/4.1.2/dtd which you will create on disk.

If the 4.2 version is also good for you then you can avoid downloading and adding the 4.1.2 DTD files to Oxygen by declaring the DocBook 4.2 DTD in your XML file since the 4.2 DTD files are already installed by the Oxygen install kit and mapped to the local copy in the DocBook XML catalog:

Code: Select all

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
   "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">



Regards,
Sorin
jspychka
Posts: 30

Re: DocBook4.1 validation

Wed Sep 19, 2012 4:34 pm

Once again, you came to the rescue, Sorin :D . Works fine now. Many thanks.

Return to “XML Schemas”

Who is online

Users browsing this forum: No registered users and 0 guests