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

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

From: Anders Moe <anders.moe@geocap.no>
Date: Wed, 25 Apr 2007 10:33:46 +0200
To: <www-xsl-fo@w3.org>
Message-ID: <55F58318E0C1460B9FC2924EC4C4D846@xeon>
Hi all

 

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>

 

fop transforms to .fo without problems,  but for some reason that .fo is not
accepted in the next step. The output and my processing statement is given
below. Any help is much appreciated. Also, converting to rtf gives the same
results. 

 

Anders.

 

 

C:\Documents and Settings\Anders\My Documents\fop-0.93>fop -xml fido.xml
-xsl c:\docbook5-xsl-1.72.0\fo\docbook.xsl

 -pdf fido.pdf

"java"

25.apr.2007 09:56:58 org.apache.fop.cli.InputHandler warning

WARNING: javax.xml.transform.TransformerException: Making portrait pages on
USletter paper (8.5inx11in)

25.apr.2007 09:57:01 org.apache.fop.fo.FOTreeBuilder$MainFOHandler
endElement

WARNING: Mismatch: flow (http://www.w3.org/1999/XSL/Format) vs.
page-sequence (http://www.w3.org/1999/XSL/Format)

25.apr.2007 09:57:01 org.apache.fop.fo.FOTreeBuilder$MainFOHandler
endElement

WARNING: Mismatch: flow (http://www.w3.org/1999/XSL/Format) vs. root
(http://www.w3.org/1999/XSL/Format)

25.apr.2007 09:57:01 org.apache.fop.cli.Main startFOP

SEVERE: Exception

javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: Error(Unknown location): fo:flow i

s missing child elements.

Required Content Model: marker* (%block;)+

        at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168)

        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)

        at org.apache.fop.cli.Main.startFOP(Main.java:160)

        at org.apache.fop.cli.Main.main(Main.java:191)

 

---------

 

javax.xml.transform.TransformerException:
org.apache.fop.fo.ValidationException: Error(Unknown location): fo:flow i

s missing child elements.

Required Content Model: marker* (%block;)+

        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1410)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1374)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:160)

        at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:393)

        at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:176)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1374)

        at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:393)

        at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:176)

        at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:393)

        at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:176)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:160)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at
org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at
org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at
org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2281)

        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1367)

        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
709)

        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1284)

        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1262)

        at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)

        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)

        at org.apache.fop.cli.Main.startFOP(Main.java:160)

        at org.apache.fop.cli.Main.main(Main.java:191)

Caused by: org.apache.fop.fo.ValidationException: Error(Unknown location):
fo:flow is missing child elements.

Required Content Model: marker* (%block;)+

        at
org.apache.fop.fo.FONode.missingChildElementError(FONode.java:407)

        at org.apache.fop.fo.pagination.Flow.endOfNode(Flow.java:90)

        at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:
378)

        at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)

        at
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:26
1)

        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1399)

        ... 30 more

---------

org.apache.fop.fo.ValidationException: Error(Unknown location): fo:flow is
missing child elements.

Required Content Model: marker* (%block;)+

        at
org.apache.fop.fo.FONode.missingChildElementError(FONode.java:407)

        at org.apache.fop.fo.pagination.Flow.endOfNode(Flow.java:90)

        at
org.apache.fop.fo.FOTreeBuilder$MainFOHandler.endElement(FOTreeBuilder.java:
378)

        at
org.apache.fop.fo.FOTreeBuilder.endElement(FOTreeBuilder.java:194)

        at
org.apache.xml.serializer.ToXMLSAXHandler.endElement(ToXMLSAXHandler.java:26
1)

        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1399)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1374)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:160)

        at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:393)

        at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:176)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at
org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:
1374)

        at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:393)

        at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:176)

        at
org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApp
lyTemplates.java:393)

        at
org.apache.xalan.templates.ElemApplyTemplates.execute(ElemApplyTemplates.jav
a:176)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at org.apache.xalan.templates.ElemIf.execute(ElemIf.java:160)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at
org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at
org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at
org.apache.xalan.templates.ElemChoose.execute(ElemChoose.java:139)

        at
org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(Transform
erImpl.java:2411)

        at
org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(Transformer
Impl.java:2281)

        at
org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.j
ava:1367)

        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
709)

        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1284)

        at
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:
1262)

        at
org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:165)

        at org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115)

        at org.apache.fop.cli.Main.startFOP(Main.java:160)

        at org.apache.fop.cli.Main.main(Main.java:191)

C:\Documents and Settings\Anders\My Documents\fop-0.93>

 

 

________________________________________________________

Anders Moe

Software Integration Manager
Geocap
w: +47 22 49 19 87

anders.moe <mailto:anders.moe@geocap.no> @geocap.no
________________________________________________________



 
Received on Wednesday, 25 April 2007 12:52:44 GMT

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