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

Re: Tabs

Subject: Re: Tabs
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Tue, 13 Aug 2002 23:26:47 +0200
linebreak in xslt
sascha wrote:
i have a problem transforming tabs into :fo, maybe i should better post this
into the xsl:fo list , but i  guess it is more a XSLT thing:
Here's my Input :

One of the problems is to put the parsed text correctly into a XSLFO table. The general expectation is that if you have tabs at 1cm and 2cm and as text some long text&#9;more text the text after the tab should be aligned to the tab at 2cm. So while it is easy to set up a table for a set of given tabs, putting the right text into the right cells is far from trivial. Basically you have to do some text layout yourself in XSLT, including line breaking. You can use string-length()*$average-character-width to estimate the laid out text width but this can be spectacularly fail for proportional fonts. Individual character widths can be grabbed from various sources sso that a more correct width can be calculated, but XSLT was not designed to do this kind of jobs. FXML will make it easy to write but performance can't be expected to be great, you might want to use an embedded script language or an extension function.

Right aligned tabs provide another interesting challenge.

J.Pietschmann



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list


Current Thread
  • Re: Tabs, (continued)
        • Wendell Piez - Tue, 13 Aug 2002 15:24:52 -0400 (EDT)
        • Jeni Tennison - Tue, 13 Aug 2002 05:49:27 -0400 (EDT)
        • Paul Tremblay - Tue, 13 Aug 2002 11:13:20 -0400 (EDT)
        • sascha - Thu, 15 Aug 2002 02:34:46 -0400 (EDT)
        • J.Pietschmann - Tue, 13 Aug 2002 17:26:26 -0400 (EDT) <=

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.