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

RE: xsl:fo - keeps and breaks problem..

Subject: RE: xsl:fo - keeps and breaks problem..
From: DPawson@xxxxxxxxxxx
Date: Thu, 12 Sep 2002 09:47:12 +0100
xsl fo performance line break
> 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


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.