tags 516253 + patch
thanks

Hi,

The issue appears now, because xmlto runs xmllint now with resolving
entities, so it checks the complete XML document and this document is
not valid.

The document contains too many issues to send you a fix to make it
valid. Typical bugs are:

<listitem>text</listitem> must be <listitem><para>text</para></listitem>
(or <simpara> instead of <para>)

<variablelist role="params"/> is not valid, as <variablelist> must have
a <varlistentry> child (it's not an empty element)

<refsect1> contents must not be mixed <para> and <refsect2> - it can
only be first content (like <para>) and then only <refsect2>, but not
<para> between the <refsect2>


Taking a look at the files, you should contact upstream to let them fix
these issues (too many problems). They can use

xmllint --noout --xinclude --postvalid --noent doc/ConsoleKit.xml

to reproduce the problems.


As a quick and dirty solution, just skip the validation. In
doc/Makefile.in add the --skip-validation switch to the xmlto call.
Patch attached.

Regards, Daniel
--- doc/Makefile.in.orig	2008-02-26 01:40:03.000000000 +0100
+++ doc/Makefile.in	2009-03-03 00:42:27.000000000 +0100
@@ -421,7 +421,7 @@ uninstall-am: uninstall-htmldocDATA
 
 
 @docbook_docs_enabled_t...@consolekit.html : $(SPEC_XML_FILES)
-...@docbook_docs_enabled_true@	$(XMLTO) xhtml-nochunks -m config.xsl ConsoleKit.xml
+...@docbook_docs_enabled_true@	$(XMLTO) --skip-validation xhtml-nochunks -m config.xsl ConsoleKit.xml
 	$(NULL)
 
 clean-local:

Reply via email to