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 "USHAKOV, Sergey" <us...@int.com.ru> on 2007/03/01 05:12:50 UTC
0.93: problem with fo:table, width="100%" in a page header
Hello all,
I have run into a "Cannot find LM to handle given FO for LengthBase" problem
that is related to a fo:table with width="100%" in a page header
(fo:region-before).
It seems that layout manager cannot find a relation between page header and
page itself to calculate the page header width.
I have a more or less distilled .fo sample file. Is it a good idea to post
it as an attachment here?
Regards,
Sergey
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: [SPAM] 0.93: problem with fo:table, width="100%" in a page
header
Posted by malm <ma...@apache.org>.
Check BugZilla if its already reported. If yes attach your sample to the
existing bug if not create a new bug and attach to that.
Cheers
Manuel
Ushakov, Sergey N wrote:
>
> Hello all,
>
> I have run into a "Cannot find LM to handle given FO for LengthBase"
> problem
> that is related to a fo:table with width="100%" in a page header
> (fo:region-before).
>
> It seems that layout manager cannot find a relation between page header
> and
> page itself to calculate the page header width.
>
> I have a more or less distilled .fo sample file. Is it a good idea to post
> it as an attachment here?
>
> Regards,
> Sergey
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/0.93%3A-problem-with-fo%3Atable%2C-width%3D%22100-%22-in-a-page-header-tf3324984.html#a9244370
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: 0.93: problem with fo:table, width="100%" in a page header
Posted by "USHAKOV, Sergey" <us...@int.com.ru>.
Andreas, thank you a lot and sorry for my long silence. I had to make about
a month's break with my project of settings things up with FOP...
Your ideas really helped, and this problem has gone with the help of your
approach.
Just for me to have it finalized: is it a good idea to post this issue as a
bug, or is it already a known TODO item?
My best regards,
Sergey
----- Original Message -----
From: "Andreas L Delmelle" <a_...@pandora.be>
To: <fo...@xmlgraphics.apache.org>
Sent: Friday, March 02, 2007 12:05 PM
Subject: Re: 0.93: problem with fo:table, width="100%" in a page header
> On Mar 2, 2007, at 08:45, USHAKOV, Sergey wrote:
>
> Hi Sergey,
>
>> I have played a little bit more after your comments, and now I am even
>> more
>> confused.
>>
>> 1. Removing width="100%" does not help and brings in one more problem: a
>> new
>> message appears: "INFO: table-layout="fixed" and width="auto", but
>> auto-layout not supported => assuming width="100%"" :)) That is close to
>> what I was starting with...
>
> Oops. It seems my message was unclear: you shouldn't remove width="100%"
> from the table itself, but only remove percentage-widths from the
> table-cells (IF they appear there...)
>
> Looking at the example you mailed to me off-list, it seems to be the
> width="33%" specified on the fo:table-cells that's causing the message to
> appear.
>
> If possible, I'd try switching to a layout with explicit fo:table-
> columns. This can be fairly simple:
>
> <fo:table table-layout="fixed" width="100%">
> <fo:table-column column-width="proportional-column-width(1)"
> number-columns-repeated="3" />
> <fo:table-body>
> <fo:table-cell>
> ...
>
> This will give you a table where each column is 1/3 of the whole
> table-width, which seems to be what you are looking for.
>
>> 2. Changing width="100%" to an absolute value width="180mm" does not
>> help
>> either (and the complaints are the same as for 100%), and this is
>> amazing...
>
> FWIW: I'll see if I can commit a small patch containing some changes I
> made locally. The big problem with tracing the origin of the error
> message
>
> "Cannot find LM to handle given FO for LengthBase"
>
> is that no context info is displayed, so you don't really know which FO
> is causing it (only that it is /a/ percentage on /a/ FO somewhere in your
> document...)
>
>
> Cheers,
>
> Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: 0.93: problem with fo:table, width="100%" in a page header
Posted by Andreas L Delmelle <a_...@pandora.be>.
On Mar 2, 2007, at 08:45, USHAKOV, Sergey wrote:
Hi Sergey,
> I have played a little bit more after your comments, and now I am
> even more
> confused.
>
> 1. Removing width="100%" does not help and brings in one more
> problem: a new
> message appears: "INFO: table-layout="fixed" and width="auto", but
> auto-layout not supported => assuming width="100%"" :)) That is
> close to
> what I was starting with...
Oops. It seems my message was unclear: you shouldn't remove
width="100%" from the table itself, but only remove percentage-widths
from the table-cells (IF they appear there...)
Looking at the example you mailed to me off-list, it seems to be the
width="33%" specified on the fo:table-cells that's causing the
message to appear.
If possible, I'd try switching to a layout with explicit fo:table-
columns. This can be fairly simple:
<fo:table table-layout="fixed" width="100%">
<fo:table-column column-width="proportional-column-width(1)"
number-columns-repeated="3" />
<fo:table-body>
<fo:table-cell>
...
This will give you a table where each column is 1/3 of the whole
table-width, which seems to be what you are looking for.
> 2. Changing width="100%" to an absolute value width="180mm" does
> not help
> either (and the complaints are the same as for 100%), and this is
> amazing...
FWIW: I'll see if I can commit a small patch containing some changes
I made locally. The big problem with tracing the origin of the error
message
"Cannot find LM to handle given FO for LengthBase"
is that no context info is displayed, so you don't really know which
FO is causing it (only that it is /a/ percentage on /a/ FO somewhere
in your document...)
Cheers,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: 0.93: problem with fo:table, width="100%" in a page header
Posted by "USHAKOV, Sergey" <us...@int.com.ru>.
Hi Andreas, thank you for your willingness to look into it.
I have played a little bit more after your comments, and now I am even more
confused.
1. Removing width="100%" does not help and brings in one more problem: a new
message appears: "INFO: table-layout="fixed" and width="auto", but
auto-layout not supported => assuming width="100%"" :)) That is close to
what I was starting with...
2. Changing width="100%" to an absolute value width="180mm" does not help
either (and the complaints are the same as for 100%), and this is amazing...
So I'm somewhat lost now, and my sample file will follow in a separate
message...
To Manuel: I will rather refrain from posting to BugZilla now until the
picture is little bit more clear... And I did not find any previous
registered bugs for this or reasonably similar problem...
Regards,
Sergey
----- Original Message -----
From: "Andreas L Delmelle" <a_...@pandora.be>
To: <fo...@xmlgraphics.apache.org>
Sent: Thursday, March 01, 2007 1:51 PM
Subject: Re: 0.93: problem with fo:table, width="100%" in a page header
> On Mar 1, 2007, at 05:12, USHAKOV, Sergey wrote:
>
> Hi,
>
>> I have run into a "Cannot find LM to handle given FO for LengthBase"
>> problem
>> that is related to a fo:table with width="100%" in a page header
>> (fo:region-before).
>>
>> It seems that layout manager cannot find a relation between page header
>> and
>> page itself to calculate the page header width.
>>
>> I have a more or less distilled .fo sample file. Is it a good idea to
>> post
>> it as an attachment here?
>
> Is it large? If so, better not post it here, but you can mail it to me
> off-list if you want.
>
> FWIW: I've already tried a simple table in a static content, and do not
> receive the error.
>
> Recently, a similar problem was reported, but there the user also
> specified width="100%" on the cells, and that was causing the error. Be
> sure to check that. If that is the case, then removing the width property
> from the cells should solve the problem.
>
>
> HTH!
>
> Cheers,
>
> Andreas
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: 0.93: problem with fo:table, width="100%" in a page header
Posted by Andreas L Delmelle <a_...@pandora.be>.
On Mar 1, 2007, at 05:12, USHAKOV, Sergey wrote:
Hi,
> I have run into a "Cannot find LM to handle given FO for
> LengthBase" problem
> that is related to a fo:table with width="100%" in a page header
> (fo:region-before).
>
> It seems that layout manager cannot find a relation between page
> header and
> page itself to calculate the page header width.
>
> I have a more or less distilled .fo sample file. Is it a good idea
> to post
> it as an attachment here?
Is it large? If so, better not post it here, but you can mail it to
me off-list if you want.
FWIW: I've already tried a simple table in a static content, and do
not receive the error.
Recently, a similar problem was reported, but there the user also
specified width="100%" on the cells, and that was causing the error.
Be sure to check that. If that is the case, then removing the width
property from the cells should solve the problem.
HTH!
Cheers,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org