You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Balaji Loganathan <ba...@yahoo.com> on 2003/12/04 14:46:06 UTC

bug ?

Just accidently, if i have a fo:block before
fo:table-cell, then I'm getting the error 
java.lang.ClassCastException 
org.apache.fop.apps.FOPException:
java.lang.ClassCastException
       at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:111)

The sample code is here..

 <fo:table table-layout="fixed"
inline-progression-dimension="auto" border="0.015mm
solid black">
<fo:table-column column-width="87mm"/>
<fo:table-column column-width="87mm"/>
<fo:table-body>
<fo:table-row height="10mm">
<fo:table-cell border-right-style="solid"
border-right-width="0.015mm">
<fo:block>Row1 column1</fo:block>
</fo:table-cell>
<fo:block>Row1 column2</fo:block>
<fo:table-cell>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>

http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: bug ?

Posted by Balaji Loganathan <ba...@yahoo.com>.
Yes!.. I very well know the below xsl:fo is wrong. But
was just wondering why its throwing "Classcast
exception" and thats the reason i posted it.

 --- Chris Bowditch <bo...@hotmail> wrote: >
Balaji Loganathan wrote:
> 
> > Just accidently, if i have a fo:block before
> > fo:table-cell, then I'm getting the error 
> 
> Your XSL-FO is not valid. fo:block is not allowed in
> the middle of a table.
> 
> FOP should exit more gracefully with a message
> saying that the block is 
> in the wrong place. This is the sort of thing that
> will be addressed in 
> the redesign effort.
> 
> > <fo:table-cell border-right-style="solid"
> > border-right-width="0.015mm">
> > <fo:block>Row1 column1</fo:block>
> > </fo:table-cell>
> > <fo:block>Row1 column2</fo:block>
> > <fo:table-cell>
> > </fo:table-cell>
> 
> Chris
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> fop-user-help@xml.apache.org
>  

http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: bug ?

Posted by Chris Bowditch <bo...@hotmail>.
Balaji Loganathan wrote:

> Just accidently, if i have a fo:block before
> fo:table-cell, then I'm getting the error 

Your XSL-FO is not valid. fo:block is not allowed in the middle of a table.

FOP should exit more gracefully with a message saying that the block is 
in the wrong place. This is the sort of thing that will be addressed in 
the redesign effort.

> <fo:table-cell border-right-style="solid"
> border-right-width="0.015mm">
> <fo:block>Row1 column1</fo:block>
> </fo:table-cell>
> <fo:block>Row1 column2</fo:block>
> <fo:table-cell>
> </fo:table-cell>

Chris



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org