maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Syer (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (DOXIA-160) Book output in doc-book format is not well formed
Date Sun, 21 Oct 2007 09:53:52 GMT

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

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

I notice from the source code of DocBookSink

1. it has getters and setters for systemId and publicId - is there a configuration option
somewhere for those?

2. it has book() and book_() methods which are non-standard for a Sink I think.  It looks
like book_() is used but book() is not.  Shouldn't book() be used explicitly at the start
of a book (and all the logic about dcotypes and everything from head() should be in book())?
 This would make sure that only one DOCTYPE was emitted.

> 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
>
> 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

        

Mime
View raw message