hi, I'm not sure if there is a solution to this, but I figured I would
ask on here anyway. Below is some code with a layout that is
table-based. The start of the second row jumps to the top of the
second page and I do not want it to.
If I make the table one column, the row prints on the correct page, or
if I remove the keep-with-previous.within-page="always" attribute the
table renders as desired. Unfortunately I want to keep both table
columns and the keep condition. I'm trying to figure out a way to
have the last row of the table always be on the same page as the
ending of the row above it. It looks like this condition is met, but
the beginning of the table row is dropped to the top of the second
page. I'm not sure if a keep attribute with integer value would work
for this, but I don't think renderx supports it.
any help is appreciated!
dan
here is the code:
<?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 page-width="8.5in" page-height="11in"
margin-top="0.25in" margin-bottom="0.25in" margin-left="0.25in"
margin-right="0.25in" master-name="USLetter-common">
<fo:region-body margin-top="1.05in" margin-bottom="0.75in"
margin-left="0.5in" margin-right="0.5in"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="USLetter-common-firstPageBodyHeader">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-reference="USLetter-common"/>
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="USLetter-common-firstPageBodyHeader">
<fo:flow flow-name="xsl-region-body">
<fo:table width="100%" table-layout="fixed">
<fo:table-column column-width="75%" column-number="1"/>
<fo:table-column column-width="25%" column-number="2"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell border="1pt solid yellow">
<fo:block>
<fo:block>Why does the next row start rendering on the next
page?</fo:block>
</fo:block>
</fo:table-cell>
<fo:table-cell border="1pt solid blue">
<fo:block>spacer</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell border="1pt solid yellow">
<fo:block font-size="80pt">Lorem ipsum dolor sit amet,
consectetur adipiscing elit. Vestibulum velit sapien.</fo:block>
</fo:table-cell>
<fo:table-cell border="1pt solid blue">
<fo:block>spacer</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row keep-with-previous.within-page="always">
<fo:table-cell border="1pt solid yellow">
<fo:block>this row has keep-with-previous.within-page="always"</fo:block>
</fo:table-cell>
<fo:table-cell border="1pt solid blue">
<fo:block>spacer</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</fo:flow>
</fo:page-sequence>
</fo:root>
-------------------
(*) 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 Fri Apr 10 05:30:33 2009
This archive was generated by hypermail 2.1.8 : Fri Apr 10 2009 - 05:30:36 PDT