You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by rh...@telerama.com on 2003/03/11 18:10:21 UTC

conditional include of "fluff" material

I have dynamic report, with chapters and pages.  Each Chapter begins a new page.

This is working in FOP.   But if the chapter ends on a page that is more than 
1/2 empty, I want to display some filler material (quotes from famous people, 
images, etc)...

Is there a way to do a conditional include of content, the condition being that 
the page has enough space to fit the content?

I don't want the filler material to generated a new page.  


Thanks!

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: conditional include of "fluff" material

Posted by "J.Pietschmann" <j3...@yahoo.de>.
rhodespc@telerama.com wrote:
> This is working in FOP.   But if the chapter ends on a page that is more than 
> 1/2 empty, I want to display some filler material (quotes from famous people, 
> images, etc)...
> 
> Is there a way to do a conditional include of content, the condition being that 
> the page has enough space to fit the content?

Check the spec:
  http://www.w3.org/TR/xsl/
Let me know if you find something interesting...

The other usual answers:
1. Try to estimate whether there will be space left while doing XSLT
and add the fluff there.
2. Try tricks with markers and/or footnotes. The latter might actually
work due to a bug in FOP (footnotes at the end of a page sequences are
discarded if they don't fit on the last page).

J.Pietschmann



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org