Cheers Mark, it's working now

my problem is still unsolved through, as i don't see the way to match "the first table row that got the max number of cells", but as you said, it's more of a xsl mailing list question...

btw, when i look at the doc on exslt.org, the namespace is

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

Do you know the difference with the namespace you gave 
(xmlns:exslt="http://exslt.org/common";) ?

regards,

Marc


Mark Lundquist a �crit :


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]





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



Reply via email to