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

Re: [XSL-FO] column of small width

Subject: Re: [XSL-FO] column of small width
From: Arved Sandstrom <Arved_37@xxxxxxxxxxxxxx>
Date: Tue, 19 Dec 2000 21:40:20 -0400
fo clip overflow
Laurent Galy writes:

> In fo:table, in case of too large text in fo:cell, text is written
> on multiple lines.

 ----------------
|text   |large   |
|       |text    |
 ----------------

> But, if there is no space in text, text is not broken and
> overflow the column.

 ----------------
|text   |large_te|xt
 ----------------

> Is there a method to hide part of text that overflows ?

Let's assume that your content is inside an fo:block; i.e.

<fo:table-cell><fo:block>TEXT</fo:block></fo:table-cell>

The default wrap-option is "wrap", meaning that line-breaking occurs for 
overflow. So you're seeing this for your first example.

But in the second example it's not a line-breaking problem, which in any 
case is left up to the formatter, it's a word-breaking problem. By default 
hyphenation is false, so if you've got a long word and not enough space, 
what else do you do?

Can you hide or clip the overflow, as you ask? In theory, yes, but not yet 
with FOP. You could wrap the fo:block in an fo:block-container, on which it 
is possible to specify "overflow". FOP doesn't yet do fo:block-container; 
we'll have to put wings on it because of needs like this.

Hope this helps,

Arved Sandstrom 


Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


 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.