[xep-support] Re: help with fo:float

From: G. Ken Holman <gkholman@CraneSoftwrights.com>
Date: Tue Oct 25 2005 - 07:40:04 PDT

At 2005-10-25 05:56 -0700, Dan Ochs <dan.ochs@gmail.com> wrote:
>I have a 2 column page flow, and I would like to create a float that
>spans the columns,

All <float float="before"> constructs span columns.

>takes up the entire next page,

In the before-float reference area you can put a relative
block-container the size of the body area.

>and is centered on that page.

And you can centre your content in that container.

>(There also may be multiple floats next to each other,
>that each need to be on their own page.)

If the block container is the size of the page, then the next float
will go to the next page.

>Does anyone know that FO I would need to use for that?

Which FO did you try? The FO below works for me.

I hope this helps.

. . . . . . . Ken

<?xml version="1.0" encoding="iso-8859-1"?><!--blockcont-float.fo-->
<root xmlns="http://www.w3.org/1999/XSL/Format"
       font-family="Times" font-size="40pt">

   <layout-master-set>
     <simple-page-master master-name="frame"
                         page-height="297mm" page-width="210mm"
                         margin-top="15mm" margin-bottom="15mm"
                         margin-left="15mm" margin-right="15mm">
       <region-body region-name="frame-body" column-count="2"
column-gap="2cm"/>
     </simple-page-master>
   </layout-master-set>

   <page-sequence master-reference="frame">
     <flow flow-name="frame-body" xmlns="http://www.w3.org/1999/XSL/Format">
       <block>This is a test - line 1</block>
       <block>This is a test - line 2</block>
       <block>This is a test - line 3</block>
       <block>This is a test - line 4</block>
       <float float="before">
         <block-container height="265mm" display-align="center">
           <block text-align="center">
             Float 1
           </block>
         </block-container>
       </float>
       <block>This is a test - line 5</block>
       <block>This is a test - line 6</block>
       <float float="before">
         <block-container height="265mm" display-align="center">
           <block text-align="center">
             Float 2
           </block>
         </block-container>
       </float>
       <block>This is a test - line 7</block>
       <block>This is a test - line 8</block>
       <block>This is a test - line 9</block>
       <float float="before">
         <block-container height="265mm" display-align="center">
           <block text-align="center">
             Float 3
           </block>
         </block-container>
       </float>
       <block>This is a test - line 10</block>
       <block>This is a test - line 1</block>
       <block>This is a test - line 2</block>
       <block>This is a test - line 3</block>
       <block>This is a test - line 4</block>
       <block>This is a test - line 5</block>
       <block>This is a test - line 6</block>
       <block>This is a test - line 7</block>
       <block>This is a test - line 8</block>
       <block>This is a test - line 9</block>
       <block>This is a test - line 10</block>
     </flow>
   </page-sequence>
</root>

--
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman                 mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/f/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Tue Oct 25 08:06:46 2005

This archive was generated by hypermail 2.1.8 : Tue Oct 25 2005 - 08:06:47 PDT