Re: [xsl] fo:list-block problem

Subject: Re: [xsl] fo:list-block problem
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 01 Jun 2004 10:16:34 -0400
At 2004-06-01 15:54 +0200, Markus Gamperl wrote:
I have got the follwing template:

<xsl:template match="text">
<fo:list-block provisional-distance-between-starts="20mm">
...
The following output is generated by this template for example:

1.1.1.1.1 Headline of the text

Now to the problem:
When the number is too long the pdf generator (Antennahouse) breaks the line

As it is supposed to ... the edges of the label and body are set, not flexible to the size of the content.


- but i don't want to size the number column bigger because in most cases 20
mm between number and headline are enough! So is there a way to size the
space between number column and headline dynamically when the number text is
too long???

Or what would you suggest for this problem?

Using a side float for the item label and a regular block for the item body, but not use the list construct. You can influence the width of the side float, which impacts on the width of the item body.


I hope this helps.

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


-- Public courses: Spring 2004 world tour of hands-on XSL instruction Next: 3-day XSLT/XPath; 2-day XSL-FO - Birmingham, UK June 14,2004

World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


Current Thread