Jeff H. wrote:
In the included FO you will see that on line 80 we have <fo:block 
page-break-before=”always”/>, then have two more fo:blocks.   But in the resultant 
docx(Document(59).docx) you will see the lines;  “Line 9” and  “Some Text goes here… 
bla bla bla” without a page break.

Now if I add the attribute page-break-before=”always” to the fo:block that 
wraps “Some Text goes here… blab la bla” the page break is added. 
(Document(64).docx)


[email protected] replied:
I confirm that XMLmind XSL-FO Converter version 6.3.3 behaves exactly the same.

Yes, it is correct to assume that:

<fo:block page-break-before=”always”/>

should give you a page break at this location in the output DOCX.

My guess is that  XMLmind XSL-FO Converter discards all fo:blocks having no 
content, which is obviously a bug in this case.

We'll try to fix this bug in the next version of XMLmind XSL-FO Converter.



I'm really sorry but we won't fix the issue you have reported.

We had hard times trying to reproduce the issue you have reported using the simplest possible test case (i.e. something even simpler that the "FO-FOR-DOCX.xml" you sent us).

What follows is a simplification of the sample you sent us:
---
<fo:block page-break-before="always" />

<fo:block><fo:inline /></fo:block>

<fo:block>Some Text goes here... bla bla bla</fo:block>
---

First and third fo:block are just fine.

Second fo:block is useless and just causes the problem.

Workarounds:

- Remove this second fo:block and XFC will work as expected.

OR

- Remove useless <fo:inline /> from the second fo:block and XFC will work as expected.

OR

- Replace <fo:inline/> by <fo:inline>&#xA0;</fo:inline> (that is, make this second fo:block useful) and XFC will work as expected.

We have attempted to modify XFC in order to detect cases such as yours and make XFC perform as expected, but we gave up.

The reasons are: (1) the streaming nature of XFC makes this detection quite difficult; (2) the case to be detected is deemed to be very rare. (You are the first person in many years to report this issue.)

--
XMLmind FO Converter Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xfc-support

Reply via email to