OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Landscape table being moved to next page

The problem is that the fo:block-container that provides the rotated 
reference orientation for a landscape table is getting a width of 100%.  FOP 
interprets that as the whole page height, and so bumps the table to the next 

Since your table sets explicit widths for all columns, the template named 
"table.width" should have computed the table's width and set the width of 
the block container to that.  However, there was a bug in that computation, 
which I have now fixed in source (so the next snapshot should work).  In the 
meantime, you can add a dbfo table-width processing instruction to that 
table to provide the correct width info, which would be the sum of the 
explicit column widths.  Then the block-container will fit without forcing a 
page break.  Here is an example of the PI:


Bob Stayton
Sagehill Enterprises

----- Original Message ----- 
From: "Antti Karanta" <antti.karanta@napa.fi>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, June 12, 2008 5:22 AM
Subject: [docbook-apps] Landscape table being moved to next page


   With the docbook xml at the end of this post, when rendering pdf the
landscape table is being rendered on the page following the text even
though it seems it would fit just fine on the same page.

   Environment: docbook-xsl 1.73.2, saxon 6, java 1.5.0_15, fop 0.95

   Relevant parameters:

use.extensions=1 fop1.extensions=1 tablecolumns.extension=1

   Is this a feature or a bug? Is there something I can do to keep the
table on the same page?


<title>A sample chapter</title>
<title>Turned list example</title>
<para>One can also turn a table landscape so that the chapter is still
in portrait. </para>
<informaltable orient="land" frame="none" colsep="0" rowsep="0">
<tgroup cols="7">
<?dbhtml cellspacing="0" ?>
<?dbhtml cellpadding="1" ?>
<colspec colname="1" align="right" colwidth="16mm"/>
<colspec colname="2" align="right" colwidth="18mm"/>
<colspec colname="3" align="right" colwidth="18mm"/>
<colspec colname="4" align="right" colwidth="18mm"/>
<colspec colname="5" align="right" colwidth="14mm"/>
<colspec colname="6" align="right" colwidth="14mm"/>
<colspec colname="7" align="right" colwidth="14mm"/>
<row rowsep="1">
<entry namest="1" nameend="7" align="center"> </entry>
<row rowsep="1">
<entry> </entry>

To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]