Since you're using XSLT, why not do something like this?
<fo:table-column number-columns-repeated="{some-expression-or-other}" />
I would think xsl:if and/or xsl:choose would be useful as well.
Eric Amick Systems Engineer II
Legislative Computer Systems
From: sree1109 [mailto:[email protected]]
Sent: Saturday, April 13, 2013 5:49 AM
To: [email protected]
Subject: How to dynamically add columns to fo:table in xsl fo
Hi,
I m trying to convert a set of db results into PDF using XSL FO. Depending on
the query, the number of columns returned might differ.Also, based on the value
of a column(in my case, Offer type), I have to choose/ignore only certain
columns which I can specify in my XSLT header/value templates.
My problem is with fo:table-column. I cannot give a static number here for
number-columns-repeated. Is there a way to dynamically add table-columns and
handle different result set using a single XSLT?