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 bu...@apache.org on 2008/03/06 09:35:53 UTC
DO NOT REPLY [Bug 44545] New: Keep together do not work correctly on
spanning table rows
https://issues.apache.org/bugzilla/show_bug.cgi?id=44545
Summary: Keep together do not work correctly on spanning table
rows
Product: Fop
Version: all
Platform: Other
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: general
AssignedTo: fop-dev@xmlgraphics.apache.org
ReportedBy: krister.wicksell@zert.se
Created an attachment (id=21635)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=21635)
Example
Keep together on table rows that has cells that spans multiple rows do not work
correctly. The spanned rows can fall over to the next page. See attached
example.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44545] Keep together do not work correctly on
spanning table rows
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44545
--- Comment #6 from Glenn Adams <gl...@skynav.com> 2012-04-01 15:15:38 UTC ---
(In reply to comment #4)
> (In reply to comment #3)
> > (In reply to comment #1)
> > Thanks for the quick reply!
> >
> > I tried this solution before and FOP tries to keep the whole table on the same
> > page when using keep-wth-next. Even if not applied to every row.
> >
> > /Krister Wicksell
> >
>
> It works for me. Make sure you are using the latest version of Trunk, there
> have been some changes regarding keeps and breaks in tables recently. Also, are
> you sure you didn't set keep-with-next on row 3 (and row 6)? You might want to
> attach your complete FO file.
>
> Vincent
vincent, could you move this to resolved (in some flavor), or does it need to
stay open?
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
[Bug 44545] Keep together do not work correctly on spanning table
rows
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44545
Glenn Adams <ga...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED
--- Comment #8 from Glenn Adams <ga...@apache.org> ---
batch transition resolved+invalid to closed+invalid
--
You are receiving this mail because:
You are the assignee for the bug.
DO NOT REPLY [Bug 44545] Keep together do not work correctly on
spanning table rows
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44545
Vincent Hennebert <vh...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution| |INVALID
--- Comment #7 from Vincent Hennebert <vh...@gmail.com> 2012-04-04 09:33:28 UTC ---
Marking this bug as invalid as FOP actually behaves according to the spec, plus
an alternative solution has been found.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44545] Keep together do not work correctly on
spanning table rows
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44545
--- Comment #3 from Krister Wicksell <kr...@zert.se> 2008-03-06 04:09:20 PST ---
(In reply to comment #1)
Thanks for the quick reply!
I tried this solution before and FOP tries to keep the whole table on the same
page when using keep-wth-next. Even if not applied to every row.
/Krister Wicksell
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44545] Keep together do not work correctly on
spanning table rows
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44545
--- Comment #4 from Vincent Hennebert <vi...@anyware-tech.com> 2008-03-06 04:26:10 PST ---
(In reply to comment #3)
> (In reply to comment #1)
> Thanks for the quick reply!
>
> I tried this solution before and FOP tries to keep the whole table on the same
> page when using keep-wth-next. Even if not applied to every row.
>
> /Krister Wicksell
>
It works for me. Make sure you are using the latest version of Trunk, there
have been some changes regarding keeps and breaks in tables recently. Also, are
you sure you didn't set keep-with-next on row 3 (and row 6)? You might want to
attach your complete FO file.
Vincent
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44545] Keep together do not work correctly on
spanning table rows
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44545
Vincent Hennebert <vi...@anyware-tech.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |NEEDINFO
--- Comment #1 from Vincent Hennebert <vi...@anyware-tech.com> 2008-03-06 02:59:37 PST ---
Hi,
Unfortunately you're hitting a corner case that is not well described by the
XSL-FO Recommendation.
I for myself would say that FOP's behaviour is correct: the row is actually
displayed in only one block on the first page. The content on the second page
actually corresponds to the last two rows. keep-together is an inherited
property but doesn't apply to fo:table-cell, so the fact that cell "1" is split
on two pages would not be wrong.
If you want to have the row-spanning cell kept on one page, set keep-together
on every spanned table-row, plus keep-with-next on each of them but the last
one:
<fo:table-row keep-together="always" keep-with-next="always">
<fo:table-cell number-rows-spanned="3" border=".5pt solid black">
<fo:block>1</fo:block>
</fo:table-cell>
<fo:table-cell border=".5pt solid black">
<fo:block>2.1</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row keep-together="always" keep-with-next="always">
<fo:table-cell border=".5pt solid black">
<fo:block>2.2</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row keep-together="always">
<fo:table-cell border=".5pt solid black">
<fo:block>2.3</fo:block>
</fo:table-cell>
</fo:table-row>
I'm leaving this bug open and ask for other opinions on this topic. But this is
probably a candidate for another request for clarification to xsl-editors@.
Vincent Hennebert
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44545] Keep together do not work correctly on
spanning table rows
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44545
--- Comment #5 from Krister Wicksell <kr...@zert.se> 2008-03-06 04:41:31 PST ---
(In reply to comment #4)
Thanks!
I updated my FOP SVN and now it works.
/Krister
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
DO NOT REPLY [Bug 44545] Keep together do not work correctly on
spanning table rows
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=44545
--- Comment #2 from Krister Wicksell <kr...@zert.se> 2008-03-06 04:05:05 PST ---
Created an attachment (id=21638)
--> (https://issues.apache.org/bugzilla/attachment.cgi?id=21638)
Result of proposed solution
When Using keep-with-next="always" FOP will try to keep the complete table on
the same page resulting in the attached PDF.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.