Loading ...
Sorry, an error occurred while loading the content.

Forcing a new page start when content overflows from region-body into region-aft

Expand Messages
  • soken78
    Can someone please provide an example on how to prevent content from overflowing from the region-body into region-after . I have a footer that is displayed on
    Message 1 of 3 , Sep 2, 2003
    • 0 Attachment
      Can someone please provide an example on how to prevent content from
      overflowing from the region-body into region-after . I have a footer
      that is displayed on everypage however only on the last page does it
      display correctly. Within the other pages, the content within the
      region-body overflows onto the region-after section, causing overlap.


      Here is my layout-master code.
      <fo:layout-master-set>
      <!-- layout for the first page -->
      <fo:simple-page-master master-name="first" page-height="29.7cm" page-
      width="21.0cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm"
      margin-right="2cm">
      <fo:region-body region-name="xsl-region-body" margin-top="90mm"
      border="{$border}"/><!--border-style="hidden"-->
      <fo:region-before region-name="first-before" extent="50mm"
      padding="0mm" display-align="before" border="{$debugBorder}"/> <!--
      border-style="hidden"/-->
      <fo:region-after region-name="xsl-region-after" overflow="hidden"
      display-align="after" margin-top="20mm" extent="10mm"
      precedence="false" border="{$debugBorder}"/>
      <!-- extent="0.7in" display-align="before" padding="6pt 0.7in -->
      </fo:simple-page-master>

      <!-- layout for odd pages -->
      <fo:simple-page-master master-name="odd" page-height="29.7cm" page-
      width="21.0cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm"
      margin-right="2cm">
      <fo:region-body region-name="xsl-region-body" margin-top="20mm"
      border-spacing="2pt" border="{$border}"/><!-- margin-top="20mm" -->
      <fo:region-before region-name="odd-before" margin-top="20mm"
      extent="30mm" padding="0mm" border-style="hidden" display-
      align="before" border="{$debugBorder}"/>
      <fo:region-after region-name="xsl-region-after" overflow="hidden"
      display-align="after" extent="10mm" precedence="false"
      border="{$debugBorder}"/>
      <!--fo:region-after margin-bottom="20mm" region-name="odd-after"
      extent="20mm" padding="0mm" border-style="hidden" display-
      align="after" border="{$debugBorder}"/-->
      </fo:simple-page-master>

      <!-- layout for even pages -->
      <fo:simple-page-master master-name="even" page-height="29.7cm" page-
      width="21.0cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm"
      margin-right="2cm">
      <fo:region-body region-name="xsl-region-body" margin-top="20mm"
      border-spacing="2pt" border="{$border}"/>
      <fo:region-before region-name="even-before" margin-top="20mm"
      extent="30mm" padding="0mm" border-style="hidden" display-
      align="before" border="{$debugBorder}"/>
      <fo:region-after region-name="xsl-region-after" overflow="hidden"
      display-align="after" extent="10mm" precedence="false"
      border="{$debugBorder}"/>
      <!--fo:region-after margin-bottom="20mm" region-name="even-after"
      extent="20mm" padding="0mm" border-style="hidden" display-
      align="after" border="{$debugBorder}"/-->

      </fo:simple-page-master>

      <!-- Page sequence rendering for Buchungsdetail printing-->
      <fo:page-sequence-master master-name="buchungsDetail">
      <fo:repeatable-page-master-alternatives>
      <fo:conditional-page-master-reference master-reference="first" page-
      position="first"/>
      <fo:conditional-page-master-reference master-reference="odd" page-
      position="rest" odd-or-even="odd"/>
      <fo:conditional-page-master-reference master-reference="even" page-
      position="rest" odd-or-even="even"/>
      </fo:repeatable-page-master-alternatives>
      </fo:page-sequence-master>
      </fo:layout-master-set>


      Thank you in advance for you help.

      T.
    • G. Ken Holman
      ... By placing a margin on the region-body. ... I note above that you have no margin-bottom= on your ... since the regions are *not* mutually
      Message 2 of 3 , Sep 2, 2003
      • 0 Attachment
        At 2003-09-02 13:10 +0000, soken78 wrote:
        >Can someone please provide an example on how to prevent content from
        >overflowing from the region-body into region-after .

        By placing a margin on the region-body.

        >I have a footer
        >that is displayed on everypage however only on the last page does it
        >display correctly. Within the other pages, the content within the
        >region-body overflows onto the region-after section, causing overlap.
        >
        >Here is my layout-master code.
        ><fo:layout-master-set>
        ><!-- layout for the first page -->
        ><fo:simple-page-master master-name="first" page-height="29.7cm" page-
        >width="21.0cm" margin-top="2cm" margin-bottom="2cm" margin-left="2cm"
        >margin-right="2cm">
        ><fo:region-body region-name="xsl-region-body" margin-top="90mm"
        >border="{$border}"/>

        I note above that you have no margin-bottom= on your <region-body> ...
        since the regions are *not* mutually exclusive, the extent of your
        <region-after> will incur into your <region-body> until you shrink the size
        of your <region-body> at least the value of the extent of your <region-after>.

        I hope this helps.

        ................ Ken


        --
        Next public European delivery: 3-day XSLT/2-day XSL-FO 2003-09-22
        Instructor-led on-site corporate, government & user group training
        for XSLT and XSL-FO world-wide: please contact us for the details

        G. Ken Holman mailto:gkholman@...
        Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
        Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
        ISBN 0-13-065196-6 Definitive XSLT and XPath
        ISBN 0-13-140374-5 Definitive XSL-FO
        ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
        ISBN 1-894049-11-X Practical Formatting Using XSL-FO
        Member of the XML Guild of Practitioners: http://XMLGuild.info
        Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc
      • soken78
        Hello everyone, Well I finally figured it out, several minutes after posting the message so, all that need to be done was to place within the fo:region-body
        Message 3 of 3 , Sep 2, 2003
        • 0 Attachment
          Hello everyone,
          Well I finally figured it out, several minutes after posting the
          message so, all that need to be done was to place within the
          fo:region-body the margin="20mm".

          Regards

          T

          --- In XSL-FO@yahoogroups.com, "soken78" <soken78@y...> wrote:
          > Can someone please provide an example on how to prevent content
          from
          > overflowing from the region-body into region-after . I have a
          footer
          > that is displayed on everypage however only on the last page does
          it
          > display correctly. Within the other pages, the content within the
          > region-body overflows onto the region-after section, causing
          overlap.
          >
          >
          > Here is my layout-master code.
          > <fo:layout-master-set>
          > <!-- layout for the first page -->
          > <fo:simple-page-master master-name="first" page-height="29.7cm"
          page-
          > width="21.0cm" margin-top="2cm" margin-bottom="2cm" margin-
          left="2cm"
          > margin-right="2cm">
          > <fo:region-body region-name="xsl-region-body" margin-top="90mm"
          > border="{$border}"/><!--border-style="hidden"-->
          > <fo:region-before region-name="first-before" extent="50mm"
          > padding="0mm" display-align="before" border="{$debugBorder}"/> <!--
          > border-style="hidden"/-->
          > <fo:region-after region-name="xsl-region-after" overflow="hidden"
          > display-align="after" margin-top="20mm" extent="10mm"
          > precedence="false" border="{$debugBorder}"/>
          > <!-- extent="0.7in" display-align="before" padding="6pt 0.7in -->
          > </fo:simple-page-master>
          >
          > <!-- layout for odd pages -->
          > <fo:simple-page-master master-name="odd" page-height="29.7cm" page-
          > width="21.0cm" margin-top="2cm" margin-bottom="2cm" margin-
          left="2cm"
          > margin-right="2cm">
          > <fo:region-body region-name="xsl-region-body" margin-top="20mm"
          > border-spacing="2pt" border="{$border}"/><!-- margin-top="20mm" -->
          > <fo:region-before region-name="odd-before" margin-top="20mm"
          > extent="30mm" padding="0mm" border-style="hidden" display-
          > align="before" border="{$debugBorder}"/>
          > <fo:region-after region-name="xsl-region-after" overflow="hidden"
          > display-align="after" extent="10mm" precedence="false"
          > border="{$debugBorder}"/>
          > <!--fo:region-after margin-bottom="20mm" region-name="odd-after"
          > extent="20mm" padding="0mm" border-style="hidden" display-
          > align="after" border="{$debugBorder}"/-->
          > </fo:simple-page-master>
          >
          > <!-- layout for even pages -->
          > <fo:simple-page-master master-name="even" page-height="29.7cm" page-
          > width="21.0cm" margin-top="2cm" margin-bottom="2cm" margin-
          left="2cm"
          > margin-right="2cm">
          > <fo:region-body region-name="xsl-region-body" margin-top="20mm"
          > border-spacing="2pt" border="{$border}"/>
          > <fo:region-before region-name="even-before" margin-top="20mm"
          > extent="30mm" padding="0mm" border-style="hidden" display-
          > align="before" border="{$debugBorder}"/>
          > <fo:region-after region-name="xsl-region-after" overflow="hidden"
          > display-align="after" extent="10mm" precedence="false"
          > border="{$debugBorder}"/>
          > <!--fo:region-after margin-bottom="20mm" region-name="even-after"
          > extent="20mm" padding="0mm" border-style="hidden" display-
          > align="after" border="{$debugBorder}"/-->
          >
          > </fo:simple-page-master>
          >
          > <!-- Page sequence rendering for Buchungsdetail printing-->
          > <fo:page-sequence-master master-name="buchungsDetail">
          > <fo:repeatable-page-master-alternatives>
          > <fo:conditional-page-master-reference master-reference="first" page-
          > position="first"/>
          > <fo:conditional-page-master-reference master-reference="odd" page-
          > position="rest" odd-or-even="odd"/>
          > <fo:conditional-page-master-reference master-reference="even" page-
          > position="rest" odd-or-even="even"/>
          > </fo:repeatable-page-master-alternatives>
          > </fo:page-sequence-master>
          > </fo:layout-master-set>
          >
          >
          > Thank you in advance for you help.
          >
          > T.
        Your message has been successfully submitted and would be delivered to recipients shortly.