Re: [XSL-FO] Defining the number of columns to be created dynamically
- tikram2003 wrote:
> I wanted to know if a variable can be used to assign the number ofTry
> columns to be created in a table.e.g.
> <xsl:variable name="columnsCount">
> <xsl:value-of select="/@size">
<xsl:variable name="columnsCount" select="@size"/>
instead. The XPath /@size will result in an empty string.
> Please guide if can be done like this...or the best way to define theIf you want a "best way", define "best".
> number of columns to be created...as in my case it varies.
> Also, if the number of columns in a table is more than the width ofNo chance, the XSLFO spec doesn't have any mechanics for this.
> the page, how to make the rest of the columns appear in the next
> page....right now,all the extra columns are just not visible.
If the sum out your table column widths exceeds the available page
width, you have to split the table yourself. If the table parts
should appear on consecutive pages, this will alos require either
some logic to estimate the table rows per page or some post
processing of the result in order to reshuffle the pages.