Hello Raphael,

On Wed, Feb 11, 2009 at 09:54:44AM +0100, Raphael Hertzog wrote:
> 
> Let's say I create a docbook file that starts like this:
> $ head -4 en/release-notes.dbk 
> <?xml version='1.0' encoding='utf-8'?>
> <!DOCTYPE book SYSTEM "/usr/share/xml/docbook/schema/dtd/4.4/docbookx.dtd" [
>   <!ENTITY % shareddata   SYSTEM "../release-notes.ent" > %shareddata;
> ]>

It's the second time I receive such request, so I guess I will have to make
the error more verbose.

Basically, the po4a Xml module checks if the DTD used in the file matches
with the module specified on the command line (here docbook).

For the Docbook module, I'm expecting to find 'docbook xml'. But this is
only used by PUBLID doctypes.

For SYSTEM doctype, the dtd could also be renamed to anything, and the
name for docbook is not really standardized in the various version.

So I propose to either:
 * remove the doctype check
 * add an option to ignore doctype check failures
 * make the error more verbose, i.e:
                Bad document type. 'docbook xml' expected.
                Try specifying the string that should be check in the
                document type with the -o doctype option, or ignore this
                check with -o doctype="".

Would you have a preference?

Best Regards,
-- 
Nekral



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to