Re: fop-0.93 gives fo:flow error converting docbook5 -> pdf

Hi Anders,

> I'm using fop-0.93 to convert docbook5 to pdf. The fop examples run
> fine, and and know my docbook is OK, but fop gives me errors.

> The docbook test file is simply
>
> <?xml version="1.0" encoding="utf-8"?>
>
> <book xmlns="http://docbook.org/ns/docbook"
> xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
>
>
>
> </book>

This is an empty book, and your stylesheets probably generate an empty
Table of Contents for it. That's a fo:page-sequence with some
fo:static-content children and a fo:flow. In your case the fo:flow
will be empty, because there are no chapters to list. An empty fo:flow
is invalid however, and that's what the error message tells you:

> org.apache.fop.fo.ValidationException: Error(Unknown location):
> fo:flow is missing child elements.
> Required Content Model: marker* (%block;)+

The same thing happens if you generate e.g. an <article> with <para>s
but without <section>s, even though it's legal DocBook XML.


HTH,
Paul Vinkenoog

Received on Thursday, 26 April 2007 01:19:36 UTC