[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XSL-FO and layout problem

Subject: Re: XSL-FO and layout problem
From: "Nick Ridout" <costempd@xxxxxxxxxx>
Date: Thu, 14 Jun 2001 08:24:43 -0400
xsl fo for layout
Which formatter are you using?  I am using Fop-0.18.1-DEV and have
encountered similar problems.  I needed to format a two-column "signature
block" area on the bottom half of the first page.  I found that the
presence of any table on the page seemed to cause a page break to occur
sooner than if there were only blocks in the flow.   I managed to get the
block to stay on page one with the formatting I needed  by not using
tables.  I defined the page as two columns and used list items for
additional formatting.  This was inspired by one of Nikolai Grigoriev's
postings (I think), either to this list or to XSL-FO@xxxxxxxxxxxxxxxx
Here's a snippet:

      <!-- Begin 2 column area -->
      <fo:block font-size="8pt"
                line-height="10pt"
                space-before.optimum="8pt"
                text-align="start"
                start-indent=".1in"
                span="none">
        <fo:list-item>
          <fo:list-item-label>
            <fo:block>Agreed to:</fo:block>
          </fo:list-item-label>
          <fo:list-item-body start-indent="1in">
            <fo:block font-weight="bold">
                       <xsl:value-of select="CUST_NAME"/>
            </fo:block>
          </fo:list-item-body>
        </fo:list-item>
      </fo:block>


Nick Ridout

>Date: Wed, 13 Jun 2001 13:01:54 -0400
>From: "kfricovsky" <kfricovsky@xxxxxxxxxxx>
>Subject:  XSL-FO and layout problem
>
>Hi.
>
>For some reason I am unable to keep the one page worth of content I have
>on ONE page. My PDF keeps breaking into 2 pages.
>
>I have two simple columns, created by a <fo:table>, with other nested
>tables inside those columns.
>
>The left column fits its entire content onto the 1st page, but the right
>column dumps 2/3 of its content into the 2nd page.
>
>There is plenty of room for the <fo:table> to fit everything onto the
>first page.
>
>Does anyone know of any problems using nested <fo:table> and if anyone
>can offer a solution I would greatly appreciate it.
>
>Here's my layout-master-set:
>
><fo:layout-master-set>
>                 <fo:simple-page-master master-name="simple"
>                                                 page-height="11in"
>                                                 page-width="8.5in"
>                                                 margin-top="0.1in"
>                                                 margin-bottom="0.5in"
>                                                 margin-left="0.6in"
>                                                 margin-right="0.5in">
>                         <fo:region-body margin-top="0.1in"/>
>         </fo:simple-page-master>
></fo:layout-master-set>
>
>Thanks,
>
>Kevin
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.