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

Re: How to achieve FO Table variable width with nowrap

Subject: Re: How to achieve FO Table variable width with nowrap on cells
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 26 Jan 2009 08:50:36 +0900
Re:  How to achieve FO Table variable width with nowrap
At 2009-01-25 11:10 -0700, Karl Stubsjoen wrote:
In FO, what would be the correct implementation for a table who's
width is strictly dependent on content, where the content does not
wrap in the table-cell.

In XSL-FO all table cell boundaries are either explicitly set by the stylesheet, or dynamically calculated by the formatter ... not dynamically set by the stylesheet.


And cell boundaries cannot be different on a per-row basis within a single table (though you can, of course, have many single-row tables).

I need:  label + value, underlined.  The length of the label is
dynamic (unknown), and same for the value.

Two possible ways:


(1) - use table-layout="fixed" and wrap the content of each cell in a block keeping the line contents together with something like wrap-option="no-wrap" or with a keep-together.within-line= to force the formatter to make its table column decisions without breaking the line content

(2) - use a side float instead of a table, again with something like wrap-option="no-wrap" on the block so that the formatter calculates the width of the float to be the width of the block

And you will need one table per label/value pair, or one side-float and associated block per label/value pair.

I hope this helps.

. . . . . . . . . . Ken

--
Upcoming XSLT/XSL-FO, UBL and code list hands-on training classes:
:  Sydney, AU 2009-01/02; Brussels, BE 2009-03; Prague, CZ 2009-03
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
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-2011 All Rights Reserved.