This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl:fo - keeps and breaks problem..
- From: DPawson at rnib dot org dot uk
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 12 Sep 2002 09:47:12 +0100
- Subject: RE: [xsl] xsl:fo - keeps and breaks problem..
- Reply-to: xsl-list at lists dot mulberrytech dot com
> I've played around with adding the break-after/break-before attributes
> on the fo:block inside the template, but because it is being called
> recursively this results in one page for each result (I can
> probably fit
> about 6 matches on one page before it needs to break)
>
> Any ideas about how to control this ? Maybe I'm missing a simple
> attribute somewhere...
How about the strength of the keep?
http://www.w3.org/TR/xsl/slice7.html#keep-with-previous
and
http://www.w3.org/TR/xsl/slice4.html#keepbreak
Keep conditions are imposed by the "within-page", "within-column", and
"within-line" components of the "keep-with-previous", "keep-with-next", and
"keep-together" properties. The refined value of each component specifies
the strength of the keep condition imposed, with higher numbers being
stronger than lower numbers and the value always being stronger than all
numeric values.
Perhaps the keep-with-previous (or next) with a given strength for its
successor,
slightly higher or lower than the opposing keep.
That would add weight to the glue one side over the other?
That presumes that fop implements them. See fop literature for details
HTH DaveP
-
NOTICE: The information contained in this email and any attachments is
confidential and may be legally privileged. If you are not the
intended recipient you are hereby notified that you must not use,
disclose, distribute, copy, print or rely on this email's content. If
you are not the intended recipient, please notify the sender
immediately and then delete the email and any attachments from your
system.
RNIB has made strenuous efforts to ensure that emails and any
attachments generated by its staff are free from viruses. However, it
cannot accept any responsibility for any viruses which are
transmitted. We therefore recommend you scan all attachments.
Please note that the statements and views expressed in this email
and any attachments are those of the author and do not necessarily
represent those of RNIB.
RNIB Registered Charity Number: 226227
Website: http://www.rnib.org.uk
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list