Re: [XSL-FO] column of small width
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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format