Loading ...
Sorry, an error occurred while loading the content.

Re: Conditional page break

Expand Messages
  • pmdgexinc <peter.drivas@gexinc.com>
    Thanks Eliot, I had a feeling that there wasn t a consistent way to do this. I ll probably go with the attribute the author can set, since it s probably the
    Message 1 of 4 , Jan 7, 2003
    • 0 Attachment
      Thanks Eliot, I had a feeling that there wasn't a consistent way to
      do this. I'll probably go with the attribute the author can set,
      since it's probably the most reliable solution.


      --- In XSL-FO@yahoogroups.com, "W. Eliot Kimber" <eliot@i...> wrote:
      > pmdgexinc wrote:
      > > Now there is a new requirement that the page break
      > > occur only if the <intro-section> is contained on the first page.
      > > it overflows to the second page, no page break should occur.
      > There is no complete solution because XSL 1.0 does not provide any
      > "layout aware" formatting controls that would allow you to put
      > page-aware conditional processing in the XSL-FO instance.
      > However, you can get a lot of mileage from the keep-together and
      > keep-with-* properties. It would require some experimentation, but
      > you set the keep-together.on-page value to "always" or a very high
      > number for the block that *follows* the introduction, that should
      > it to start on a new page as long as it can't fit on the first page
      > the intro. This may require tuning based on the typical content of
      > documents.
      > Another workaround is to provide authors with an attribute to
      > whether or not there should be a break after the intro. This type
      > author-provided format tuning can solve a lot of problems that XSL
      > is simply not set up to solve.
      > Cheers,
      > Eliot
      > --
      > W. Eliot Kimber, eliot@i...
      > Consultant, ISOGEN International
      > 1016 La Posada Dr., Suite 240
      > Austin, TX 78752 Phone: 512.656.4139
    Your message has been successfully submitted and would be delivered to recipients shortly.