Subject: XSL-FO : table-cell width problem From: paul.bezault@xxxxxxxxx Date: Mon, 21 Jun 2004 17:26:51 +0200 |
hello ! So I have a problem with a 16cm width table!!! I want 2 col with width=1cm, 1 col with width=6cm, 2 col with width=1cm and 1 col with width=6cm but i obtain a table with 6 col with the same width ... Here the source code of my table : (i have write 111 block to simulate a empty cells) <fo:table border="1pt solid red" margin="0pt 0pt 0pt 0pt" width="16cm" background-color="#cdc9c9"> <fo:table-column width="1cm"/> <fo:table-column width="1cm"/> <fo:table-column width="6cm"/> <fo:table-column width="1cm"/> <fo:table-column width="1cm"/> <fo:table-column width="6cm"/> <fo:table-body> <fo:table-row> <fo:table-cell number-columns-spanned="3" width="8cm"> <fo:block border="1pt solid red" font-size="7pt" font-family ="sans-serif" text-align="start" font-weight="bold" space-before.optimum=" 3pt" space-after.optimum="3pt">Domain : </fo:block> </fo:table-cell> <fo:table-cell number-columns-spanned="3" width="8cm"> <fo:block border="1pt solid red" font-size="7pt" font-family ="sans-serif" text-align="start" font-weight="bold" space-before.optimum=" 3pt" space-after.optimum="3pt"> blablabla </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell width="1cm" > <fo:block border="1pt solid red" font-size="7pt" font-family ="sans-serif" text-align="start" font-weight="bold" space-before.optimum=" 3pt" space-after.optimum="3pt">111</fo:block> </fo:table-cell> <fo:table-cell number-columns-spanned="2" width="7cm"> <fo:block border="1pt solid red" font-size="7pt" font-family ="sans-serif" text-align="start" font-weight="bold" space-before.optimum=" 3pt" space-after.optimum="3pt">Secteur : </fo:block> </fo:table-cell> <fo:table-cell width="1cm" > <fo:block border="1pt solid red" font-size="7pt" font-family ="sans-serif" text-align="start" font-weight="bold" space-before.optimum=" 3pt" space-after.optimum="3pt">111</fo:block> </fo:table-cell> <fo:table-cell number-columns-spanned="2" width="7cm"> <fo:block border="1pt solid red" font-size="7pt" font-family ="sans-serif" text-align="start" font-weight="bold" space-before.optimum=" 3pt" space-after.optimum="3pt"> blablabla </fo:block> </fo:table-cell> </fo:table-row> <fo:table-row> <fo:table-cell width="1cm"> <fo:block border="1pt solid red" font-size="7pt" font-family ="sans-serif" text-align="start" font-weight="bold" space-before.optimum=" 3pt" space-after.optimum="3pt">111</fo:block> </fo:table-cell> <fo:table-cell width="1cm" > <fo:block border="1pt solid red" font-size="7pt" font-family ="sans-serif" text-align="start" font-weight="bold" space-before.optimum=" 3pt" space-after.optimum="3pt">111</fo:block> </fo:table-cell> <fo:table-cell width="6cm"> <fo:block border="1pt solid red" font-size="7pt" font-family ="sans-serif" text-align="start" font-weight="bold" space-before.optimum=" 3pt" space-after.optimum="3pt">Sous-Secteur : </fo:block> </fo:table-cell> <fo:table-cell width="1cm" > <fo:block border="1pt solid red" font-size="7pt" font-family ="sans-serif" text-align="start" font-weight="bold" space-before.optimum=" 3pt" space-after.optimum="3pt">111</fo:block> </fo:table-cell> <fo:table-cell width="1cm" > <fo:block border="1pt solid red" font-size="7pt" font-family ="sans-serif" text-align="start" font-weight="bold" space-before.optimum=" 3pt" space-after.optimum="3pt">111</fo:block> </fo:table-cell> <fo:table-cell width="6cm"> <fo:block border="1pt solid red" font-size="7pt" font-family ="sans-serif" text-align="start" font-weight="bold" space-before.optimum=" 3pt" space-after.optimum="3pt"> blablabla </fo:block> </fo:table-cell> </fo:table-row> </fo:table-body> </fo:table> and if if you want to seee what i want , here the same table but in Html : <table align="left" bgcolor="#e0e0e0" border="0" width="100%"> <tr align="left"> <th> <table border="0"> <tr> <td colspan="3"> <b>Domain : </b> </td> <td colspan="3">blablabla</td> </tr> <tr> <td width="10"> <p /> </td> <td colspan="2"> <b>Secteur : </b> </td> <td width="10"> <p /> </td> <td colspan="2">blablabla</td> </tr> <tr> <td width="10"> <p /> </td> <td width="10"> <p /> </td> <td> <b>Sous Secteur : </b> </td> <td width="10"> <p /> </td> <td width="10"> <p /> </td> <td>blablabla</td> </tr> </table> </th> </tr> </table> thanks for your help !!! ****************************************************************** The sender's email address has changed to firstname.lastname@ sgcib.com. You may want to update your personal address book. Please see http://www.sgcib.com for more information. ** This message and any attachments (the "message") are confidential and intended solely for the addressee(s). Any unauthorised use or dissemination is prohibited. E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. *************** L'adresse mail de votre correspondant a change en prenom.nom@ sgcib.com. Il est recommande de mettre a jour votre carnet d'addresse personnel.Pour plus d'informations, aller sur http://www.sgcib.com ** Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, modifie ou falsifie. ******************************************************************
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Rebecca Jensen/Rochester/IBM is out, Rebecca Jensen | Thread | Re: [xsl] XSL-FO : table-cell width, G. Ken Holman |
Rebecca Jensen/Rochester/IBM is out, Rebecca Jensen | Date | Re: [xsl] XSL-FO : table-cell width, G. Ken Holman |
Month |