OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] [ERROR] org.apache.fop.apps.FOPException: fo:flow must contain block-level child


On Sunday 26 September 2004 23:39, Feilpe Vieira Silva wrote:
> I´m trying to make a modular book, using ENTITY to import all book
> segments, but the FOP produces the following error:
> [ERROR] org.apache.fop.apps.FOPException: fo:flow must contain block-level
> child
>
> bellow comes my test documents:
>
> BOOK =============================================
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
>                "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"; [
> <!ENTITY % bug SYSTEM "bug.xml">
> ]>
> <book id="book">
> <preface id="forward"><title>Foreword</title>
> <para>A preface.</para>
> </preface>
> <part id="gettingStarted">
>         <title>Preparing the writing environment</title>
>         &bug;
> </part>
> </book>
> +++++++++++++++++++++++++++++++++++++++++++++++++++
>
> CHAPTER ===========================================
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
>                "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd";>
> <chapter id="chapter">
>         <title></title>
>         <titleabbrev>Installing the XSLT processors</titleabbrev>
>         <section id="xsltproc">
>                 <title>xsltproc</title>
>                 <titleabbrev>xsltproc</titleabbrev>
>                 some tips about the project tree
>         </section>
> </chapter>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> several hours trying variations of the above examples....
>
> any tip ?

Feilpe,

This is not a FOP problem.

1. Comment out the DocTypeDecl of your chapter document
2. In book document. Change your ent Decl from 
<!ENTITY % bug SYSTEM "bug.xml">
to
<!ENTITY bug SYSTEM "bug.xml">

3. Then validate your book (I don't know which Parser and XSL Processor you 
use, I suggest Xerces/Xalan.)
4. Resolve any validity problems.


Other ideas not related to your problem.
- Is there any reason why you use ISO-8859-1. I recommend UTF-8.
- I suggest placing all ent Decl in a separate file. So your DocTypeDecl will 
look like this:

<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
                      "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"; [
<!ENTITY % global_entities SYSTEM "global.ent">
%global_entities;
]>

This way you will be able to keep all ent in one place for use by all 
documents.

Hope this helps,

-- 
Sean Wheller
sean@enbaya.co.za
http://www.enbaya.co.za


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]