A picture paints a thousand words...

      -----------------------------------
     | ............... : ..............  |
     | ............... : ..............  |
     | ............... : ..............  |
     | ............... : ..............  |
     | ............... : ..............  |
     | ............... : ..............  |
     | ............... : ..............  |
     | ............... : ..............  |
     | ............... : ..............  |
     | ............... : ..............  |
     | ............... : ..............  |
     | ............... : ..............  |
     |        1        :        2        |
      -----------------------------------

The picture above represents a single sheet of A4 (Letter) 
paper. However it also represents two pages in a book, and
if the page is folded down the dotted line it even starts to 
look like a book. My problem is this; I need the page number 
sequence as displayed in the  picture - ie. 2 pages per page (sheet)

I have no trouble laying out the text flow correctly using 
stuff like

    <fo:simple-page-master master-name="content"
                           page-height="{$pageheight}mm"
                           page-width="{$pagewidth}mm"
                           margin-left="{$marginleft}mm"
                           margin-right="{$marginright}mm"
                           margin-top="{$margintop}mm"
                           margin-bottom="{$marginbottom}mm">

      <fo:region-before extent="10mm"/> 

      <fo:region-after extent="10mm"/> 


      <fo:region-body margin-top="10mm"
                      margin-bottom="10mm"
                      column-count="2" 
                      column-gap="20mm"/>



    </fo:simple-page-master>

and I defined a static region for the page number values
using the following

  <fo:static-content flow-name="xsl-region-after" 
                     font-family="serif" 
                     font-size="9pt">

    <fo:table table-layout="fixed">
      <fo:table-column column-width="120mm"/>
      <fo:table-column column-width="120mm"/>
      <fo:table-body>
        <fo:table-row>
          <fo:table-cell>
            <fo:block text-align="center">
      <fo:page-number/> <!-- 2x -->
             </fo:block>
          </fo:table-cell>
          <fo:table-cell>
            <fo:block text-align="center">
      <fo:page-number/> <!-- 2x + 1 -->
             </fo:block>
          </fo:table-cell>
        </fo:table-row>
      </fo:table-body>
    </fo:table>

  </fo:static-content>

but I do not know how to get the <fo:page-number/> to play
the game and give me more than one page number per page.

Perhaps I am wrong in my approach and there is a way of
specifying two page regions per page/sheet, but I have 
not found it yet.

Any ideas?

WPE

Reply via email to