You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Stefan Bodewig <bo...@bost.de> on 2001/02/16 13:29:17 UTC

IndexOutOfBoundsException in TableRow

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

Re: IndexOutOfBoundsException in TableRow

Posted by Stefan Bodewig <bo...@bost.de>.
Keiron Liddle <ke...@aftexsw.com> wrote:

> I have fixed the table row so that it reports an error if the number
> of columns used by the cells is different from the number of columns
> specified in the table.

I've seen it, works for me, thanks.

Is there any chance FOP could tell me which table row in which table
is causing the problem? This would make it a lot easier to fix the
generating stylesheet.

Stefan

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


Re: IndexOutOfBoundsException in TableRow

Posted by Keiron Liddle <ke...@aftexsw.com>.
I have fixed the table row so that it reports an error if the number of
columns used by the cells is different from the number of columns
specified in the table.

I didn't use the patch but instead checked before and report an error
message if the cells require more or fewer columns than in the table.

Stefan Bodewig wrote:

> Hi,
>
> I'm not too familiar with XSL:FO or PDF, I'm just trying to use FOP to
> make PDF versions from my DocBook documentation (using Norman Walsh's
> stylesheets), so please bear with me.
>
> Using FOP 0.15 on one of my documents I always received some warnings
> that the number of children in a row would not be equal to the number
> of columns in the table (which reminded me to look at the stylesheets
> in the first place). Today I switched to FOP 0.17 and received a FATAL
> ERROR that turned out to be an IndexOutOfBoundsException in
> TableRow.layout.
>
> I think the attached patch fixes this problem, well somehow, as it
> simply hides it and avoids the Exception - but given my intro,
> somebody else will have to double/triple check it.
>
> Thanks
>
>         Stefan


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


Re: IndexOutOfBoundsException in TableRow

Posted by Stefan Bodewig <bo...@bost.de>.
Sorry, either the new XEmacs or the version of Gnus I've installed
yesterday seems to have a problem with attachments.

The plain text of my message might have been hidden by your mailer as
my mail was malformed, repeated below:

Hi,

I'm not too familiar with XSL:FO or PDF, I'm just trying to use FOP to
make PDF versions from my DocBook documentation (using Norman Walsh's
stylesheets), so please bear with me.

Using FOP 0.15 on one of my documents I always received some warnings
that the number of children in a row would not be equal to the number
of columns in the table (which reminded me to look at the stylesheets
in the first place). Today I switched to FOP 0.17 and received a FATAL
ERROR that turned out to be an IndexOutOfBoundsException in
TableRow.layout.

I think the attached patch fixes this problem, well somehow, as it
simply hides it and avoids the Exception - but given my intro,
somebody else will have to double/triple check it.

Thanks

        Stefan

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