[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: [xsl-fo] generating the correct number of columns

Subject: Re: [xsl-fo] generating the correct number of columns for a table from html to xsl-fo
From: "Noel Golding" <noel@xxxxxxxxxxxxxxx>
Date: Tue, 15 Oct 2002 09:14:15 -0400
xsl number of columns
if all the columns are going to be equal width then you can try this


<xsl:param name="cols"><xsl:value-of select="count(tr/td)" /></xsl:param>

<fo:table>
<fo:table-column column-width="2cm" number-columns-repeated="{$cols}" />
...
</fo:table>


----- Original Message -----
From: <Jaish_Kumar@xxxxxxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>; <Jaish_Kumar@xxxxxxxxxxxxx>
Sent: Monday, October 14, 2002 11:54 PM
Subject:  [xsl-fo] generating the correct number of columns for a table
from html to xsl-fo


>
>
> Jaish Kumar
> Apex,Ph. no. 5351194,5351027 extn 141
> " Pessimist always looks for  difficulty in opportunity and Optimist
always
> looks for opportunity in difficulty "
> ----- Forwarded by Jaish Kumar/Product/Apex on 14/06/2002 09:19 AM -----
>
>                     "El Hage Camille"
>                     <CAMILLE.ELHAGE@xxxxxxxxxxx       To:
<xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
>                     l.com>                            cc:
>                     Sent by:                          Subject:     
[xsl-fo] generating the correct
>                     owner-xsl-list@xxxxxxxxxxxx        number of columns
for a table from html to xsl-fo
>                     rytech.com
>
>
>                     14/10/2002 10:20 PM
>                     Please respond to xsl-list
>
>
>
>
>
>
> Hi all,
> I need to generate a table in xsl-fo from an html table. My problem is
that
> in FO, you need to declare the number of columns before starting the body.
>
> On the FAQ, I only found the (enlightening) discussion on how to get the
> maximum number of child nodes (
> http://www.biglist.com/lists/xsl-list/archives/200101/msg00177.html), but
> the resulting code gives a number and I don't know how to use that.
>
> My question is: if I have a number (say "8"), how do I loop through to
> generate 8 times the line : <fo:table-column column-width="2cm"/> ?
>
> thanks for any help.
> Camille
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.