You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Kelvin Zheng <kz...@diCarta.com> on 2000/11/07 02:15:38 UTC

from HTML table to PDF table

I am trying to write a generate XSL script to convert any HTML table to PDF
table.

But I have some problems on determining the number of columns in the table
in order to write "<fo:table-column></fo:table-column>".

Has anybody writting this link of XSL before? It will be great if someone
can give me a hand on this issue.

Thank you in advance.

Kelvin Zheng
diCarta, Inc.
600 Allerton Street 
Second Floor 
Redwood City, CA 94063 
http://www.dicarta.com
(650) 474-3862
(650) 474-3888 Fax 
mailto:kzheng@dicarta.com

Re: from HTML table to PDF table

Posted by Markus Holmberg <ma...@acc.umu.se>.
Try this:

<xsl:for-each select="tr[1]/td">
    <fo:table-column column-width="5cm"/>
</xsl:for-each>

Regards,

Markus.


On Mon, Nov 06, 2000 at 05:15:38PM -0800, Kelvin Zheng wrote:
> I am trying to write a generate XSL script to convert any HTML table to PDF
> table.
> 
> But I have some problems on determining the number of columns in the table
> in order to write "<fo:table-column></fo:table-column>".
> 
> Has anybody writting this link of XSL before? It will be great if someone
> can give me a hand on this issue.
> 
> Thank you in advance.
> 
> Kelvin Zheng
> diCarta, Inc.
> 600 Allerton Street 
> Second Floor 
> Redwood City, CA 94063 
> http://www.dicarta.com
> (650) 474-3862
> (650) 474-3888 Fax 
> mailto:kzheng@dicarta.com

-- 

Markus Holmberg         |       Give me Unix or give me a typewriter.
markush@acc.umu.se      |       http://www.freebsd.org/