Jump to content

Keeping Lines with Head


DVezina
 Share

Recommended Posts

I'm wondering if anyone has found a solution to this problem. The requirement of the style sheet is to ALWAYS keep two lines with a head. This, of course, works using the widows and orphans property if the head is followed by a block of multiple lines. However, in my case, the head is followed by single line blocks.

<fo:block xsl:use-attribute-sets="title" keep-with-next.within-column="always">Configuring a Disk Drive</fo:block><fo:block>This is an intro paragraph.</fo:block><fo:block>This is a single line paragraph.</fo:block>

I must keep both lines with the head. I cannot use attributes on these blocks because they will not always be single lines. They may be large paragraphs. Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...