On Apr 22, 2008, at 20:23, Bart Van Assche wrote:

Hi

I'm trying to convert a document with fop to PDF format. The error
message cited below is not really clear to me. Is this a fop issue or
an issue with the input document (index.fo) ?

Apr 22, 2008 8:15:23 PM org.apache.fop.fo.ElementMappingRegistry findFOMaker
WARNING: Unknown formatting object http://www.tug.org/fotex^bookmark
Apr 22, 2008 8:15:23 PM org.apache.fop.cli.Main startFOP
SEVERE: Exception
javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException:
file:/home/bart/software/valgrind/docs/print/index.fo:4369:4879:
Error(4369/4879): fo:inline is not a valid child element of fo:flow.

Definitely an issue with the input document. The error means that the document has something like:

<fo:flow ...>
  ...
  <fo:inline>...

Which is not valid. The fo:flow's content model is restricted to only block-level elements, like fo:block, fo:block-container, fo:list- block, fo:table... An fo:wrapper would also be allowed, but an fo:inline as direct flow-descendant is definitely in violation of the XSL-FO Recommendation.

Check the input document with an XPath like: //fo:inline [parent::fo:flow] to find the offending elements.


HTH!

Cheers

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to