Re: Visual constraints

At 2002-09-12 04:47 +0100, Stephen Homer wrote:
>If I have a layout with a small area I want to somehow detect if the text 
>associated with it is too large to fit in the area and either drop out 
>with an error, add an error to the output file or flow the text into 
>another conditional area (probably another page) which I can detect 
>programmatically from the resultant file.

Check out the use of a <block-container> or <inline-container> (based on 
where you want the container to be in your flow) and the overflow= property 
of "error-if-overflow".

I hope this helps.

............... Ken

--
Upcoming hands-on in-depth    Europe:         Sep 18-Sep 20,2002
XSLT/XPath and XSL-FO         North America:  Sep 30-Oct  4,2002

G. Ken Holman               mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.        http://www.CraneSoftwrights.com/f/
Box 266, Kars, Ontario CANADA K0A-2E0  +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                     Definitive XSLT and XPath
ISBN 0-13-140374-5                             Definitive XSL-FO
ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1             Practical Formatting Using XSL-FO
Next public training:           2002-09-13,18,19,30,10-03,12-08,
-                                                  2003-03-04,07

Received on Thursday, 12 September 2002 07:18:46 UTC