At 08:59 06/02/02, Ferran wrote:
>Hi,
>
>I'm working with xsl-fo, and I've made some tables... but, Is it possible
>to do something like <td colspan..> ? in xsl-fo (I'm trying to do this in
>pdf format)
Firstly I'd recommend asking straight FOP questions in the fo-user mailing
list. (It does exist :-)
There is a higher concentration of FOP users there who can help you.
(Cocoon uses FOP for its XSL:FO by default).
To try answering your question..... Dunno.... I don't remember.... OK. If
you download the latest release of FOP it comes with examples. One of the
examples has a column span example in it.....
Extract from tables/headfoot.fo
<fo:block space-before.optimum="2cm">
Table 4: cells spanning columns
</fo:block>
<fo:table>
<fo:table-column column-width="2cm"/>
<fo:table-column column-width="2cm"/>
<fo:table-column column-width="2cm"/>
<fo:table-column column-width="2cm"/>
<fo:table-column column-width="2cm"/>
<fo:table-column column-width="2cm"/>
<fo:table-body>
<fo:table-row>
<fo:table-cell
border-width="0.5pt"
border-style="solid"
border-color="black"
text-align="center" vertical-align="middle"
number-columns-spanned="1" background-color="#FF6AC0">
<fo:block> 1 to 1</fo:block>
</fo:table-cell>
<fo:table-cell
border-width="0.5pt"
border-style="solid"
border-color="black"
text-align="center" vertical-align="middle"
number-columns-spanned="5" background-color="#9BF2E9">
<fo:block> 2 to 6</fo:block>
</fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell
border-width="0.5pt"
border-style="solid"
border-color="black"
text-align="center" vertical-align="middle"
number-columns-spanned="2" background-color="#FF6AC0">
<fo:block> 1 to 2</fo:block>
</fo:table-cell>
<fo:table-cell
border-width="0.5pt"
border-style="solid"
border-color="black"
text-align="center" vertical-align="middle"
number-columns-spanned="4" background-color="#9BF2E9">
<fo:block> 3 to 6</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>