Details
Description
I tried using the output from a book in doc-book to run it through a postprocesing step with docbook and found that it barfed on the source generated by doxia. Not surprising when you consider that it is not well formed, e.g. it has two <<<DOCTYPE>>> headers in it, and no root element:
+---
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
<chapter><section>Bar<para>This is bar</para>
</section>
</chapter>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.1//EN">
<chapter><section>Spam<para>This is spam</para>
</section>
</chapter>
</book>
+---
When I changed it to this it worked better
+---
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
<book>
<chapter><section>Bar<para>This is bar</para>
</section>
</chapter>
<chapter><section>Spam<para>This is spam</para>
</section>
</chapter>
</book>
+---
Update: when you put a title and author in the APT source itself
+---
—
Bar Section
—
Dave
—
+---
then the duplicate <<<DOCTYPE>>> declarations go away - still a bug but there is a workaround. But there is still no root element and the entity declaration is wrong (no system location) - I haven't found a workaround for that.