Chris Bowditch wrote:
Daniel Noll wrote:
Chris Bowditch wrote:
<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.
All elements had properties, actually. I removed them, partially so
that I could figure out which part of the document caused the problem,
but also to get a bare example to post here.
Ok. But just to prove what the cause of the problem is, did you try
removing the fo:inline or changing the fo:inline to fo:block? IIC, once
you have done this the FO should generate output and avoid the
ClassCastException.
Yeah, removing the inline element does avoid the exception but then the
elements which are supposed to be inline, aren't (obviously.)
I'll report it on the bug tracker I guess. Here's hoping it's not too
hard to fix.
Daniel
--
Daniel Noll
Nuix Pty Ltd
Suite 79, 89 Jones St, Ultimo NSW 2007, Australia Ph: +61 2 9280 0699
Web: http://nuix.com/ Fax: +61 2 9212 6902
This message is intended only for the named recipient. If you are not
the intended recipient you are notified that disclosing, copying,
distributing or taking any action in reliance on the contents of this
message or attachment is strictly prohibited.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]