LIBXML validation does not work in 14.1?
Posted: Fri Feb 01, 2013 1:00 am
Hi,
I am using 14.1, build 2012121012. I tried to set up validation scenario using LIBXML (I am using XPointer scheme, so I need LIBXML). I am working with DocBook 4 document.
When the document is valid, it is correctly displayed as valid. However, if the document is not valid, the Info tab shows the following messages (among a lot of garbage about using catalogs for resolution):
Yet, oXygen shows the document as valid - green light at the status bar at the bottom says "Document is valid". Even if I go to this error message and click it, oXygen does not take me to the element which is causing the issue.
So, I think there are three issues here:
1) oXygen does not detect a failure from LIBXML (anything other than "exit status = 0" should be considered an error, according to libxml's documentation);
2) The error message from LIBXML does not navigate to the element causing it;
3) Could the output from LIBXML be made less verbose? It is hard to find an error line among all the debugging messages.
Example debug messages:
I am using 14.1, build 2012121012. I tried to set up validation scenario using LIBXML (I am using XPointer scheme, so I need LIBXML). I am working with DocBook 4 document.
When the document is valid, it is correctly displayed as valid. However, if the document is not valid, the Info tab shows the following messages (among a lot of garbage about using catalogs for resolution):
Code: Select all
[LIBXML] ch_foo.xml:56: element sect1: validity error : Element sect1 does not follow the DTD, ...
...
[LIBXML] Process LIBXML exit code = 3
So, I think there are three issues here:
1) oXygen does not detect a failure from LIBXML (anything other than "exit status = 0" should be considered an error, according to libxml's documentation);
2) The error message from LIBXML does not navigate to the element causing it;
3) Could the output from LIBXML be made less verbose? It is hard to find an error line among all the debugging messages.
Example debug messages:
Code: Select all
Executing: "C:\Program Files (x86)\Oxygen XML Editor 14/xmllint" --noout --catalogs --xinclude --postvalid C:\documents\sample.xml
Resolve: pubID -//OASIS//DTD DocBook XML V4.5//EN sysID http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd
4524 Parsing catalog C:/cygwin/home/Alexey/userdocs/share/catalog.xml
C:/documents/share/catalog.xml added to file hash
Using rewriting rule http://www.oasis-open.org/docbook/xml/4.5/
...
Catalogs cleanup
Free catalog entry http://docbook.sourceforge.net/release/xsl/current/
Free catalog entry http://docbook.sourceforge.net/release/xsl/current/
Free catalog entry http://www.w3.org/Math/DTD/mathml2/