You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Dave Syer (JIRA)" <ji...@codehaus.org> on 2007/11/03 17:01:10 UTC

[jira] Commented: (DOXIA-160) Book output in doc-book format is not well formed

    [ http://jira.codehaus.org/browse/DOXIA-160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_112643 ] 

Dave Syer commented on DOXIA-160:
---------------------------------

For Xhtml format the BookRenderer uses a subclass of XhtmlSink physically located in the book module.  I think this is a better approach than that in the Docbook case because it keeps the responsibilities separate.  If I work on a patch for this can it drop the "isBook" flag from the DocbookSink and move that logic to a subclass, like the Xhtml case?

> Book output in doc-book format is not well formed
> -------------------------------------------------
>
>                 Key: DOXIA-160
>                 URL: http://jira.codehaus.org/browse/DOXIA-160
>             Project: Maven Doxia
>          Issue Type: Bug
>          Components: Book
>    Affects Versions: 1.0-alpha-9
>            Reporter: Dave Syer
>             Fix For: 1.0-beta-1
>
>
> 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>
> +---

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira