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

Re: [xsl-fo]

Subject: Re: [xsl-fo]
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 19 Aug 2008 07:34:19 -0400
Re:  [xsl-fo]
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

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.