LIBXML catalog path

Oxygen general issues.
honyk
Posts: 176
Joined: Wed Apr 29, 2009 4:55 pm

LIBXML catalog path

Post by honyk »

Hello,

if there is set LIBXML as engine for validation, the following error is displayed: E [LIBXML] warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd".

Maybe some firewall issue, but it seems there is attempt to validate document against public DTD, while I'd prefer system one. How can I set link to catalog file in case of LIBXML engine?

Thanks in advance.

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

Re: LIBXML catalog path

Post by sorin_ristache »

The XML catalogs that are set in Oxygen should be used by LIBXML including the XML catalogs of the document types from Preferences -> Document Type Association. I tested your document and I get no validation error. Did you modify the XML catalogs in the DocBook document type?


Regards,
Sorin
honyk
Posts: 176
Joined: Wed Apr 29, 2009 4:55 pm

Re: LIBXML catalog path

Post by honyk »

I've restored DocBook DTD to original one (I've added there xi:include element so inclusion mechanism probably didn't work properly) and now it is Ok.
honyk
Posts: 176
Joined: Wed Apr 29, 2009 4:55 pm

Re: LIBXML catalog path

Post by honyk »

I was wrong in previous post. It still doesn't work, or, at least, it is not reliable.

I've restored catalog settings for sure. Catalogs are resolved properly (info from catalog tab):

Code: Select all


Description: Resolved system: http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd	file:/C:/Program%20Files%20(x86)/Oxygen%20XML%20Author%2010/frameworks/docbook/4.4/dtd/docbookx.dtd
Description: Public: -//OASIS//DTD DocBook XML V4.4//EN System: http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd = file:/C:/Program%20Files%20(x86)/Oxygen%20XML%20Author%2010/frameworks/docbook/4.4/dtd/docbookx.dtd
After that, I got error in original post sometimes. There is additional info in Info tab:

Code: Select all

Description: Executing: C:\Program Files (x86)\Oxygen XML Author 10/xmllint   --noout --catalogs --xinclude --postvalid C:\master.xml
Description: error : Result too large
Description: D DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
Description: ^
Description: error : No such file or directory
Description: D DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
Description: ^
...
Description: warning: failed to load external entity "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
Description: validity error : Could not load the external subset "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd"
Description: Document C:\master.xml does not validate
Description: Catalogs cleanup
Description: Process LIBXML exit code = 3
I don't know why, but this kind of error disappear after restart of Oxygen.

Sometimes wrong results are interpreted by Oxygen as Ok results...
If for example not existent ID is used for linked attribute, in Info tab there is correct info:

Code: Select all

Description: second.xml:5: element link: validity error : IDREF attribute linkend references an unknown ID "firstx"
...
Description: Process LIBXML exit code = 3
But such result is processed by Oxygen as 'Document is valid'.
Post Reply