Re: [xsl] keep togethers for table-row causing problems

Subject: Re: [xsl] keep togethers for table-row causing problems
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Feb 2007 20:40:06 -0500
At 2007-02-22 15:45 -0800, ms wrote:
In order to prevent table-rows from splitting across
pages, I used the keep-together-within-page="always"
for fo:table-row. This is causing a new issue. renderx
throws an exception of "no space for an element.Trying
to recover" and the transformation fails. Can anybody
suggest a way that will prevent the rows from breaking
over pages?

In XSL-FO if you say "always" and there isn't sufficient room for what you are trying to keep together, that triggers an overflow error. You can't prevent a row from breaking over pages if the row doesn't fit on the page.

Try a numeric value instead of "always" ... when the row won't fit it will break but it won't trigger an overflow error.

I hope this helps.

. . . . . . . . . . Ken

World-wide corporate, govt. & user group XML, XSL and UBL training
RSS feeds:     publicly-available developer resources and training
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05
Legal business disclaimers:

Current Thread