https://issues.apache.org/bugzilla/show_bug.cgi?id=37579





--- Comment #17 from Andreas L. Delmelle <[EMAIL PROTECTED]>  2008-05-02 
09:27:37 PST ---
(In reply to comment #16)
> I'm attaching an updated patch, that can be applied to the trunk as it is now.

Thanks! Good to see you back in action ;-)

> 
> It basically does the same thing as the old one, just in a slightly different
> way due to the new classes involved in the table management.
> 
> The 5 "shortcomings" listed by Gerhard Oettl in comment #4 are still present,
> although I'm not sure whether the second one (indentation of notes whose
> citation is in the list-item-body) is a bug or the right behaviour, because of
> indent inheritance ...

It is correct behavior. No special rules are defined for property-inheritance
on fo:footnotes, so default inheritance applies. Stylesheet authors should
reset the indent to zero on the fo:footnote, if so desired.

> 
> I've tried to track down the LengthBase error message, but I could not find
> where the problem really is: the strange thing is that it happens only for
> footnotes in the list-item-label, and not for those in the list-item-body ...

The reason seems to occur due to resolution of the label-end() function that is
triggered from within FootnoteBodyLM.
Looking at org.apache.fop.fo.expr.LabelEndFunction, there is a component
PercentLength being created. Resolution of this percentage during normal layout
is done by looking up the associated ancestor LM, but since (if I interpret
correctly) the FootnoteBodyLM is not a descendant of the original
ListItemLayoutManager, this resolution fails...

Setting the fo:footnote's end-indent to "0pt" eliminates the dependency on
label-end() in the footnote, and thus also the warnings.

> 
> Footnotes on table headers / footers will probably need a special handling, as
> they behave quite differently from the "normal" ones, being repeated.
> 

Right, my first instinct would be to include footnotes for the table-header
only on the first page that is spanned by the table, and for the table-footer
only on the last page.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to