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

Re: [XSL-FO] Table not flowing onto next page

Expand Messages
  • Chris Bowditch
    ... ... This is the reason your table does not flow onto subsequent pages. Block-containers are not flowing objects. Replace it with a regular block
    Message 1 of 5 , Oct 7, 2004
    • 0 Attachment
      Greg Hulands wrote:
      > Hi,
      > I am having trouble getting a table of data to flow to the next page. I
      > can't figure out what I am doing wrong. I have looked at all the
      > tutorials and samples from IBM developer works and FOP, but cannot see
      > anything different. If anyone can see anything glaringly obvious with
      > what I'm doing wrong, it would be greatly appreciated if you can point
      > it out.

      <snip/>

      > <fo:block-container position="absolute" top="0cm" left="0cm"
      > width="25cm" height="16.5cm" border="1pt solid black">

      This is the reason your table does not flow onto subsequent pages.
      Block-containers are not flowing objects. Replace it with a regular block instead.

      Chris
    • Greg Hulands
      Hi, I am having trouble getting a table of data to flow to the next page. I can t figure out what I am doing wrong. I have looked at all the tutorials and
      Message 2 of 5 , Oct 8, 2004
      • 0 Attachment
        Hi,
        I am having trouble getting a table of data to flow to the next page. I
        can't figure out what I am doing wrong. I have looked at all the
        tutorials and samples from IBM developer works and FOP, but cannot see
        anything different. If anyone can see anything glaringly obvious with
        what I'm doing wrong, it would be greatly appreciated if you can point
        it out.

        Thanks in advance,
        Greg


        <?xml version="1.0" encoding="utf-8"?>
        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">


        <fo:layout-master-set>
        <fo:simple-page-master master-name="first"
        page-height="21cm"
        page-width="29.7cm"
        margin-top="1.5cm"
        margin-bottom="1.5cm"
        margin-left="1.5cm"
        margin-right="1.5cm">
        <fo:region-body margin-top="0cm" margin-bottom="1.5cm"/>
        <fo:region-before extent="1cm"/>
        <fo:region-after extent="1cm" region-name="ra-right"/>
        </fo:simple-page-master>
        <fo:simple-page-master master-name="left"
        page-height="21cm"
        page-width="29.7cm"
        margin-top="1.5cm"
        margin-bottom="1.5cm"
        margin-left="1.5cm"
        margin-right="1.5cm">
        <fo:region-body margin-top="0cm" margin-bottom="1.5cm"/>
        <fo:region-before extent="1cm" region-name="rb-left"/>
        <fo:region-after extent="1cm" region-name="ra-left"/>
        </fo:simple-page-master>
        <fo:simple-page-master master-name="right"
        page-height="21cm"
        page-width="29.7cm"
        margin-top="1.5cm"
        margin-bottom="1.5cm"
        margin-left="1.5cm"
        margin-right="1.5cm">
        <fo:region-body margin-top="0cm" margin-bottom="1.5cm"/>
        <fo:region-before extent="1cm" region-name="rb-right"/>
        <fo:region-after extent="1cm" region-name="ra-right"/>
        </fo:simple-page-master>
        <fo:page-sequence-master master-name="standard">
        <fo:repeatable-page-master-alternatives>
        <fo:conditional-page-master-reference master-reference="first"
        page-position="first"/>
        <fo:conditional-page-master-reference master-reference="left"
        odd-or-even="even"/>
        <fo:conditional-page-master-reference master-reference="right"
        odd-or-even="odd"/>
        </fo:repeatable-page-master-alternatives>
        </fo:page-sequence-master>
        </fo:layout-master-set>


        <fo:page-sequence master-reference="standard" initial-page-number="1">

        <fo:static-content flow-name="ra-right">
        <fo:table font-size="10pt">
        <fo:table-column column-width="33%"/>
        <fo:table-column column-width="33%"/>
        <fo:table-column column-width="33%"/>
        <fo:table-body>
        <fo:table-row>
        <fo:table-cell>
        <fo:block text-align="left"></fo:block>
        </fo:table-cell>
        <fo:table-cell>
        <fo:block text-align="center">Page <fo:page-number/> of
        <fo:page-number-citation ref-id="TheVeryLastPage"/></fo:block>
        </fo:table-cell>
        <fo:table-cell>
        <fo:block text-align="right"></fo:block>
        </fo:table-cell>
        </fo:table-row>
        </fo:table-body>
        </fo:table>
        </fo:static-content>
        <fo:flow flow-name="xsl-region-body">

        <fo:block-container position="absolute" top="0cm" left="0cm"
        width="25cm" height="16.5cm" border="1pt solid black">

        <fo:table border-width="1pt" border-style="solid">
        <fo:table-column column-width="40mm"/>
        <fo:table-column column-width="90mm"/>
        <fo:table-column column-width="40mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="30mm"/>
        <fo:table-column column-width="20mm"/>
        <fo:table-column/>
        <fo:table-body>

        <fo:table-row>
        <fo:table-cell border-width="1pt"
        border-style="solid"><fo:block margin="5pt"
        font-weight="bold">Barcode</fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt"
        border-style="solid"><fo:block margin="5pt"
        font-weight="bold">Item</fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt"
        border-style="solid"><fo:block margin="5pt"
        font-weight="bold">Supplier</fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt"
        border-style="solid"><fo:block margin="5pt" font-weight="bold">Cat
        Number</fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt" border-style="solid"><fo:block
        margin="5pt" font-weight="bold">Retail Price</fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt" border-style="solid"><fo:block
        margin="5pt" font-weight="bold"># Sold</fo:block></fo:table-cell>
        </fo:table-row>

        /////////***************** This is the part that repeats for about 200
        rows. *********************//////////////////////
        <fo:table-row>
        <fo:table-cell border-width="1pt"
        border-style="solid"><fo:block
        margin="5pt">cal/12x18</fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt"
        border-style="solid"><fo:block margin="5pt">A3 Photo
        Calendar</fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt"
        border-style="solid"><fo:block margin="5pt"></fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt"
        border-style="solid"><fo:block margin="5pt"></fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt" border-style="solid"><fo:block
        margin="5pt">$100.00</fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt" border-style="solid"><fo:block
        margin="5pt">0</fo:block></fo:table-cell>
        </fo:table-row>


        <fo:table-row>
        <fo:table-cell border-width="1pt"
        border-style="solid"><fo:block
        margin="5pt">cal/8x12</fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt"
        border-style="solid"><fo:block margin="5pt">A4 Photo
        Calendar</fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt"
        border-style="solid"><fo:block margin="5pt"></fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt"
        border-style="solid"><fo:block margin="5pt"></fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt" border-style="solid"><fo:block
        margin="5pt">$100.00</fo:block></fo:table-cell>
        <fo:table-cell border-width="1pt" border-style="solid"><fo:block
        margin="5pt">0</fo:block></fo:table-cell>
        </fo:table-row>

        </fo:table-body>
        </fo:table>

        </fo:block-container>
        <fo:block id="TheVeryLastPage"></fo:block>
        </fo:flow>


        </fo:page-sequence>

        </fo:root>
      • G. Ken Holman
        ... Don t put your table into an absolutely-positioned block-container, as an absolutely-positioned block-container does not flow over page boundaries.
        Message 3 of 5 , Oct 8, 2004
        • 0 Attachment
          At 2004-10-08 19:15 +1000, Greg Hulands wrote:
          >I am having trouble getting a table of data to flow to the next page. I
          >can't figure out what I am doing wrong. I have looked at all the
          >tutorials and samples from IBM developer works and FOP, but cannot see
          >anything different. If anyone can see anything glaringly obvious with
          >what I'm doing wrong, it would be greatly appreciated if you can point
          >it out.
          >...
          ><fo:flow flow-name="xsl-region-body">
          >
          ><fo:block-container position="absolute" top="0cm" left="0cm"
          >width="25cm" height="16.5cm" border="1pt solid black">
          >
          > <fo:table border-width="1pt" border-style="solid">
          > <fo:table-column column-width="40mm"/>

          Don't put your table into an absolutely-positioned block-container, as an
          absolutely-positioned block-container does not flow over page
          boundaries. Moreover, not all processors support page wrap for
          block-containers that are longer than a page.

          It looks like you are using the block-container solely to turn on the
          border, which is already been done in the table object itself ... what
          objectives are you trying to meet by using the block-container?

          I hope this helps.

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


          --
          Upcoming publicly-subscribed XSL delivery: Helsinki Oct 18-20,2004
          World-wide on-site corporate, govt. & user group XML/XSL training.
          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)
          Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc
          Legal business disclaimers: http://www.CraneSoftwrights.com/legal
        • Greg Hulands
          Hi Ken, Thanks for the reply. I don t know why I put it in a block-container. I guess I must have seen it in another sample and used it because they had
          Message 4 of 5 , Oct 8, 2004
          • 0 Attachment
            Hi Ken,
            Thanks for the reply. I don't know why I put it in a block-container. I
            guess I must have seen it in another sample and used it because they
            had without knowing why. I have removed it and all seems to be good.

            I couldn't figure out where I had seen your name before, then it
            twigged. I have your book :-)

            Thanks for the help again.

            Regards,
            Greg
            On 08/10/2004, at 9:02 PM, G. Ken Holman wrote:

            > At 2004-10-08 19:15 +1000, Greg Hulands wrote:
            > >I am having trouble getting a table of data to flow to the next
            > page. I
            > >can't figure out what I am doing wrong. I have looked at all the
            > >tutorials and samples from IBM developer works and FOP, but cannot
            > see
            > >anything different. If anyone can see anything glaringly obvious with
            > >what I'm doing wrong, it would be greatly appreciated if you can
            > point
            > >it out.
            > >...
            > ><fo:flow flow-name="xsl-region-body">
            > >
            > ><fo:block-container position="absolute" top="0cm" left="0cm"
            > >width="25cm" height="16.5cm" border="1pt solid black">
            > >
            > >      <fo:table border-width="1pt" border-style="solid">
            > >        <fo:table-column column-width="40mm"/>
            >
            > Don't put your table into an absolutely-positioned block-container,
            > as an
            > absolutely-positioned block-container does not flow over page
            > boundaries.  Moreover, not all processors support page wrap for
            > block-containers that are longer than a page.
            >
            > It looks like you are using the block-container solely to turn on the
            > border, which is already been done in the table object itself ... what
            > objectives are you trying to meet by using the block-container?
            >
            > I hope this helps.
            >
            > ..................... Ken
            >
            >
            > --
            > Upcoming publicly-subscribed XSL delivery: Helsinki Oct 18-20,2004
            > World-wide on-site corporate, govt. & user group XML/XSL training.
            > 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)
            > Male Breast Cancer Awareness  http://www.CraneSoftwrights.com/f/bc
            > Legal business disclaimers:  http://www.CraneSoftwrights.com/legal
            >
            >
            >
            >
            > Yahoo! Groups Sponsor
            >
            > ADVERTISEMENT
            > <81804_0704_b_300250a.gif>
            > <l.gif>
            >
            > Yahoo! Groups Links
            >
            > • To visit your group on the web, go to:
            > http://groups.yahoo.com/group/XSL-FO/
            >  
            > • To unsubscribe from this group, send an email to:
            > XSL-FO-unsubscribe@yahoogroups.com
            >  
            > • Your use of Yahoo! Groups is subject to the Yahoo! Terms of
            > Service.
            >
            >
          Your message has been successfully submitted and would be delivered to recipients shortly.