[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
I might be mistaken, but you might try removing everything preceeding the <chapter> tag. I work with articles and sections, and my docs usually look like this: ARTICLE ========================================== <?xml version="1.0" encoding='UTF-8'?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"[ <!ENTITY my_section SYSTEM "my_section.xml"> ]> <article> <articleinfo>...</articleinfo> &my_section; </article> ++++++++++++++++++++++++++++++++++++++++++++++++++ MY SECTION ======================================= <section> ... </section> ++++++++++++++++++++++++++++++++++++++++++++++++++ Ben --- Feilpe Vieira Silva <fgaucho@gmail.com> 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 ? > > Felipe Gaścho > __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]