Kyle Partridge wrote:


And, here is a short example of the error message I get, running FOP with both 
the -d and the -c conf/userconfig.xml options.

[ERROR] null
org.apache.fop.apps.FOPException
        at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111)
        at org.apache.fop.apps.Fop.main(Fop.java:62)

java.lang.ClassCastException
        at org.apache.fop.fo.flow.BlockContainer.layout(BlockContainer.java:157)
        at org.apache.fop.fo.flow.BasicLink.layout(BasicLink.java:178)
        at org.apache.fop.fo.flow.Block.layout(Block.java:257)
        at org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:154)
        at 
org.apache.fop.fo.flow.AbstractFlow.layout(AbstractFlow.java:110)....etc.

block-containers are not fully implemented in FOP, and have some restrictions. These are listed on the compliance page:


http://xml.apache.org/fop/compliance.html#fo-object-block-container

Basically the error you see above is caused when the block-container is not a direct child of fo:flow.

Chris



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



Reply via email to