W3C home > Mailing lists > Public > www-xsl-fo@w3.org > April 2007

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

From: Paul Vinkenoog <paul@vinkenoog.nl>
Date: Wed, 25 Apr 2007 15:11:45 +0200 (MEST)
To: www-xsl-fo@w3.org
Message-ID: <Pine.LNX.4.62.0704251500510.26276@web017.hosting.widexs.nl>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:14 GMT