Page-Break in a table

Here should go questions about transforming XML with XSLT and FOP.
MK0508
Posts: 3
Joined: Thu Jun 06, 2019 10:19 am

Page-Break in a table

Post by MK0508 » Thu Jun 06, 2019 2:15 pm

Hello.

I got a Problem with page break in my table which is automatically generatet.

I want after the template anf_komm automatically a page break.


<fo:table-row>
<fo:table-cell border-bottom-style="solid" border-bottom-width="1.0pt" border-bottom-color="#cccccc" number-columns-spanned="11" display-align="before">
<fo:block position="relative" span="all" white-space-collapse="true" display-align="before" text-align="start" color="#000000" font-family="Arial" font-size="12.0pt"><xsl:call-template name="anf_komm"/>
</fo:block>
</fo:table-cell>
<fo:table-cell/></fo:table-row>


Best Regards,

MK0508

Costin
Posts: 600
Joined: Mon Dec 05, 2011 6:04 pm

Re: Page-Break in a table

Post by Costin » Thu Jun 06, 2019 5:21 pm

Hello,

What specific transformation scenario are you using?

Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support

MK0508
Posts: 3
Joined: Thu Jun 06, 2019 10:19 am

Re: Page-Break in a table

Post by MK0508 » Tue Jun 11, 2019 11:35 am

I work with the program XSLFast 3.0. This is saved as .xsf. It uses an .xml file to generate an .xsl which will be used as a layout.

The external program then sends out an .xml file and generates a .pdf document with the .xsl file.

The .xml always has the same structure.

Best regards

MK0508

Radu
Posts: 6453
Joined: Fri Jul 09, 2004 5:18 pm

Re: Page-Break in a table

Post by Radu » Thu Jun 13, 2019 8:14 pm

Hi,

Usually to add a page break inside XSL-FO I add a new fo:block looking something like this:

Code: Select all

<fo:block page-break-before="always"/>
If this does not work inside table cells, maybe depending on the FO processor used to create the PDF from XSL-FO (Oxygen uses Apache FOP by default) you could register on a specific processor-specific user's mailing list and ask there.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

MK0508
Posts: 3
Joined: Thu Jun 06, 2019 10:19 am

Re: Page-Break in a table

Post by MK0508 » Mon Jun 17, 2019 9:56 am

Radu wrote:
Thu Jun 13, 2019 8:14 pm
Hi,

Usually to add a page break inside XSL-FO I add a new fo:block looking something like this:

Code: Select all

<fo:block page-break-before="always"/>
If this does not work inside table cells, maybe depending on the FO processor used to create the PDF from XSL-FO (Oxygen uses Apache FOP by default) you could register on a specific processor-specific user's mailing list and ask there.

Regards,
Radu


Didn't work for me. Nothing happens when i add

Code: Select all

<fo:block page-break-before="always"/>
in my Table or directly in the .xsl data

Radu
Posts: 6453
Joined: Fri Jul 09, 2004 5:18 pm

Re: Page-Break in a table

Post by Radu » Tue Jun 18, 2019 8:58 am

Hi,

You can probably try to come up with a small XSL-FO sample document exemplifying the problem and post a question on the Apache FOP users list.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply