page break priority

Vladimir

Usenet Archive
Joined
May 10, 2000
Messages
44
Reaction score
0
Hi!!!
I'm new to XSL, XSL-FO. I'm having xml file as an input and have to generate pdf using FOP. I'm interested if there's some way to do page-breaking based on certain rules in XSL. My XML is something like <product> <category> <article> </article> ... </separator> </category>

<category>
</separator>
</category>
....
</product>
(btw, I put this part of XML into <fo:table>)
Can I put this rule in XSL: if the table is too large for one page, I should do the page breaking at the last category (the one that doesn't fit in the page), if it's too large for next page, I should do the page breaking at the last separator... Any kind of help will be very appreciated.
 

Patrick TJ McPhee

Usenet Archive
Joined
Apr 2, 2000
Messages
269
Reaction score
0
% Can I put this rule in XSL: if the table is too large for one page, I % should do the page breaking at the last category (the one that doesn't % fit in the page), if it's too large for next page, I should do the % page breaking at the last separator...

Set the keep-together and keep-with-previous properties for each affected table row (i.e., set keep-together for every row and keep-with-previous for each row excep the category one).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,802
Members
249,594
Latest member
henrywalsh

Latest Threads

Top