xsl fo: tables : column width
Hi Jerry, Auto-table layout is supported by only a few formatters at present. I have written a formatter that converts a fo file with auto-layout into one having fixed layout. I will be glad to make available to you a jar file together with the api to invoke the formatter. Please contact me off-list if you are interested. My formatter takes as input an fo file and inserts the appropriate number of fo:table-column tags along with the fo:column-width attribute with their values populated based on the content of the table cell. At present, it supports text and images in the table cell. The layout is very fast (though I haven't measured it) as it uses a sophisticated adaptive step-size algorithm to do the layouting. The layout step is in addition to the xslt transformation and the formatting step. Also, the formatter is written using JDOM and I plan to incorporate the layout program into a custom built formatter, possibly one that uses SAX, sometime in the near future. Let me know if you are interested. Cheers, Omprakash.V Senior Architect, Polaris software Lab, Email: ompravish@xxxxxxxxxxx Hi Folks, I'm relatively new to FO transformations so please forgive me, if this is a newbie question. I am dynamically generating tables and don't know the number of columns a given table may contain. I'd like to fix the width of the table and let the columns size relative to the content within them. A good example would be the default behavior of HTML tables. Currently I am able to output tables of fixed width, but the column widths are proportional to the table. Here's an example of what I mean: http://simplewebservices.net/fo_table/. Any help is appreciated. Thanks, Jerry Orabona This e-Mail may contain proprietary and confidential information and is sent for the intended recipient(s) only. If by an addressing or transmission error this mail has been misdirected to you, you are requested to delete this mail immediately. You are also hereby notified that any use, any form of reproduction, dissemination, copying, disclosure, modification, distribution and/or publication of this e-mail message, contents or its attachment other than by its intended recipient/s is strictly prohibited. Visit Us at http://www.polaris.co.in
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