On Sep 21, 2007, at 09:22, Winterflood, Jonathan wrote:


Ok, I'll see what I can do with them if I switch :)

FWIW: instead of percentages, you could also resort to the XSL-FO core functions to compute the height based on an ancestor:

<fo:root text-align="center" xmlns:fo="http://www.w3.org/1999/XSL/ Format">
  <fo:layout-master-set>
<fo:simple-page-master master-name="A4_1" margin="1cm" page- width="21cm" page-height="29.7cm">
      <fo:region-body/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="A4_1">
    <fo:flow flow-name="xsl-region-body">
      <fo:block-container height="100%">
<fo:block-container height="from-nearest-specified-value() div 2">
          <fo:block>test1</fo:block>
        </fo:block-container>
<fo:block-container height="from-nearest-specified-value() div 2">
          <fo:block>test2</fo:block>
        </fo:block-container>
      </fo:block-container>
    </fo:flow>
  </fo:page-sequence>
</fo:root>

As you see, one percentage and two function-calls avoid absolute numerics, so the code will work on whatever simple-page-master it is rendered on.


Cheers

Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to