Re: [xsl] [xsl-fo]

Subject: Re: [xsl] [xsl-fo]
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 19 Aug 2008 07:34:19 -0400
At 2008-08-19 13:33 +0500, Bilal Ilyas wrote:
i am working with text in xsl fo and having problem at line break i want to break a line with some specific space left at the line
e.g


I want to break a line at some specific location


i above example let say my block width is much that it can the line breaks at "some" but i want that the line should be breaked before "some"

Do you want the line to break because of the distance between the left margin and the word "some", or do you want the line to break because of an algorithmic calculation such as the count of words before "some"?


In the middle of a block one can break a line by injecting a zero-dimension block:

<block/>

This acts somewhat like a <br/> in HTML, but only for the first <br/> in a string of <br/> elements. For subsequent line breaks leaving a blank line one would use:

<block><leader/></block>

This approach works over a block with spaces because of the collapse of white-space characters emptying the block.

I hope this helps.

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

--
Upcoming XSLT/XSL-FO hands-on courses:      Wellington, NZ 2009-01
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread