Daniel Noll wrote:
<fo:block>
<fo:inline>
<fo:block-container absolute-position="absolute"
height="20.0px" width="15.0px"
left="166.0px" top="1.0px">
<fo:block>foo</fo:block>
</fo:block-container>
</fo:inline>
</fo:block>
When I pass this through FOP 0.93, I get the following error:
Caused by: java.lang.ClassCastException:
org.apache.fop.layoutmgr.inline.InlineLayoutManager cannot be cast to
org.apache.fop.layoutmgr.BlockLevelLayoutManager
<snip/>
Has anyone seen this exception before? Is it a bug in FOP, or is it
solveable by filtering the FO file to repair it somehow?
I've seen similar ClassCastExceptions, but they were caused by
fo:wrapper being in places FOP didn't expect. In your case I believe the
error is caused by the block-container expecting an fo:block as its
parent. Since the fo:inline element doesn't appear to be doing anything
(no properties have been set on it), you can remove it without changing
the output and the error should disappear.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]