[xml/sgml-pkgs] Bug#483503: xmlto is confused by cross-references into an external entity.

Daniel Leidert daniel.leidert at wgdd.de
Thu May 29 11:06:29 UTC 2008

Am Mittwoch, den 28.05.2008, 21:50 -0700 schrieb Daniel Burrows:

>   I was just experimenting with using xmlto on the aptitude documentation.
> I didn't get very far.
>   aptitude's documentation is split into a manpage and the main body of
> the docs. (this is for the convenience of translators -- they can just
> translate the manpage if they want)  The manpage is incorporated into
> the main document via what I believe is an external entity, unless I'm
> getting my XML terminology wrong:
>     <!ENTITY manpage SYSTEM "manpage.xml">
>   When I run xmlto on the aptitude docs, it fails and prints a bunch of
> "validity errors" like this:
>     /home/daniel/programming/aptitude/head/doc/en/aptitude.xml:9570:
> element link: validity error : IDREF attribute linkend references an
> unknown ID "cmdlineOptionSafeUpgradeNoNewInstalls"
>   The problem is, an element with that ID *does* exist, in manpage.xml.
> It looks like xmlto is just ignoring everything in that file when
> checking cross-references.  In contrast, xsltproc is quite happy to
> handle these cross-references and generates links for them in the HTML
> output.

xmlto is just a Bash-script, which uses xsltproc. So there error you get
is thrown by libxml/libxslt/xsltproc.

Can you give me the exact command you try execute? I would then try to
reproduce the problem myself. But please make sure, that xmllint is
happy with your files. ATM I guess, the validation fails. Also note the
--skip-validation switch. Does it run with this switch?

Regards, Daniel

More information about the debian-xml-sgml-pkgs mailing list