[xep-support] Re: Unexplained page break

Kevin Brown kevin at renderx.com
Thu Jan 5 21:51:20 PST 2017


You do know that your first group is different from the others correct?

 

The children of the first group are table-block-table

The children of all other groups are table-block-block

I have not analyzed past this . but the first one *is* different

 



 

From: Darren Munt [mailto:darrenm at ardex.com.au] 
Sent: Thursday, January 05, 2017 9:12 PM
To: kevin at renderx.com; RenderX Community Support List
<xep-support at renderx.com>
Subject: RE: [xep-support] Re: Unexplained page break

 

Wasn't sure if you wanted me to send the fo to this address, otherwise I
would have :)

 

But the same FO layout, only with different content, usually works. It only
happens in this one example. It's a production system which has been working
fine for a year now.

 

Anyway, I'll attach and see how you go, because it has me stumped.

 

From: Xep-support [mailto:xep-support-bounces at renderx.com] On Behalf Of
Kevin Brown
Sent: Friday, 6 January 2017 3:57 PM
To: 'RenderX Community Support List' <xep-support at renderx.com
<mailto:xep-support at renderx.com> >
Subject: [xep-support] Re: Unexplained page break

 

Because you can try this:

 

                        <fo:root
xmlns:fo="http://www.w3.org/1999/XSL/Format"
 
xmlns:rx="http://www.renderx.com/XSL/Extensions">
                                    <fo:layout-master-set>
                                                <fo:simple-page-master
page-width="4in" page-height="7in" master-name="first">
                                                            <fo:region-body
margin-left="0.5in" margin-right="0.5in"/>
                                                </fo:simple-page-master>
                                    </fo:layout-master-set>
                                    <fo:page-sequence
master-reference="first">
                                                <fo:flow
flow-name="xsl-region-body">
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                            <fo:block
space-before="12pt"  keep-together.within-page="always">I am some text. I am
some text. I am some text. I am some text. I am some text. I am some text. I
am some text. I am some text. I am some text. I am some text. </fo:block>
                                                </fo:flow>
                                    </fo:page-sequence>
                        </fo:root>

 

 

And get the totally expected result. So your description possible does not
match what you actually have.

Kevin

 

From: Xep-support [mailto:xep-support-bounces at renderx.com] On Behalf Of
Darren Munt
Sent: Thursday, January 05, 2017 7:29 PM
To: xep-support at renderx.com <mailto:xep-support at renderx.com> 
Subject: [xep-support] Unexplained page break

 

I have a document which is throwing a page break, and I was hoping you could
help me understand why. 

 

The document is very simple, it has one page sequence with a single
region-body flow. This contains a number of blocks, each has the
keep-together.within-page="always" attribute. I need each block to be kept
intact, with page breaks between as necessary.

 

For some reason, I am getting a page break after the first block, with the
remaining blocks all appearing on the next page. If I delete one of the
later blocks, I get the expected behaviour. It's obviously something to do
with the keeps but I don't understand why it would throw a break after the
first block. If I remove the keep from the last block, then it flows as
expected, but some of the content from the last block appears on the next
page.

 

I can provide FO to reproduce the problem if required.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20170105/e982b228/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 44964 bytes
Desc: not available
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20170105/e982b228/attachment-0001.png>


More information about the Xep-support mailing list