Dynamic table column width in xsl fo!

Here should go questions about transforming XML with XSLT and FOP.
mu258770
Posts: 157
Joined: Mon Aug 18, 2014 4:11 pm

Dynamic table column width in xsl fo!

Post by mu258770 »

Hi team,

I would like to provide dynamic column width for table column in xsl:fo for the PDF output.

My table has two columns, in which one contain image and the other will be its description. But I would like to get dynamic column width for the second column. Like if the input image is 60mm wide, then the second column should start from 65mm.

Currently, I am giving it as below,

Code: Select all

                         <fo:table-column column-width="65mm"/>
<fo:table-column column-width="proportional-column-width(1)"/>

But, the image width can be 50 mm sometimes. In this case the table column won't look good. The second column should start from 55 mm in this case.

Please suggest a way forward.

Thanks and regards,
Shabeer
Radu
Posts: 9431
Joined: Fri Jul 09, 2004 5:18 pm

Re: Dynamic table column width in xsl fo!

Post by Radu »

Hi Shabeer,

Not sure what to suggest you.
Maybe you could register and ask around on the Apache FOP users list:

https://xmlgraphics.apache.org/fop/maillist.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply