[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Widows and orphans in XSL-FO

Subject: Widows and orphans in XSL-FO
From: "Mark Wilson" <mark@xxxxxxxxxxxx>
Date: Fri, 30 Oct 2009 11:19:34 -0700
 Widows and orphans in XSL-FO
Hello all,
I am compiling a journal index. The output is generated via XSLT and XSL-FO. I have been looking for a way to deal with widows and orphans in XSL-FO, but all of the information I have found seems to be focused on breaks *within* an <fo:block>rather than *between* different<fo:block>s. My problem is that I only want to end a page if the processor has started rendering (or has completed rendering), a specific <fo:block>, one containing the content from an <Article> element. Is there a mechanism for forcing a page to end with, or within, a specific <fo:block>type?


The index itself may be seen at http://www.knihtisk.org/library/specialist/index.htm.

Thanks,
Mark

Pictures explain better than words. As you might imagine, the actual XSL-FO style sheet is quite complex. Thus, rather than supplying the style sheet itself, the seven possible problem configurations are shown below. Each of the five elements is rendered in its own <fo:block>:

<Heading> page 1
<Article> page 2

<Heading> page 1
<SubDiv1> page 2

<Heading> page 1
<SubDiv1> page 1
<Article>    page 2

<Heading> page 1
<SubDiv1> page 1
<SubDiv2> page 2

<Heading> page 1
<SubDiv1> page 1
<SubDiv2> page 1
<Article>    page 2

<Heading> page 1
<SubDiv1> page 1
<SubDiv2> page 1
<SubDiv3> Page 2

<Heading> page 1
<SubDiv1> page 1
<SubDiv2> page 1
<SubDiv3> page 1
<Article>    page 2

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.