On Jan 17, 2005, at 4:37 AM, Marc Salvetti wrote:

hello,

i'm trying to write a template to convert a html table to pdf
the problem is that the table-fo structure need the table columns to be declared beforehand.
so i want to find the line of the table with the maximum number of cells (because of eventual colspan columns) and transform it in columns declaration.


[...snip]

The issue is that apparently the max template can't be applied to a tree fragment.

Right, not in XSLT 1.0.

Does anyone have an idea of a workaround ?

1) Use XSLT 2.0 (Saxon); or,

2) Call the template like this

         <xsl:with-param name="nodes" select="exslt:node-set($nbCols)" />

where

        xmlns:exslt="http://exslt.org/common";

BTW, there is a mailing list for XSLT questions: http://www.mulberrytech.com/xsl/xsl-list/

HTH,
-ml-




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to