On Aug 15, 2007, at 08:17, Baeckham wrote:

Hi

I am trying create tables in PDF. Therefor I use this template:

        <xsl:template match="table">
<fo:table table-layout="auto" border="[EMAIL PROTECTED]" padding="[EMAIL PROTECTED]">
                        <fo:table-body>
                                <xsl:apply-templates select="tr" />
                        </fo:table-body>
                </fo:table>
        </xsl:template>

Borders around the table and between the cells are not displayed - even when I
set a hardcoded border width:
<fo:table table-layout="auto" border="1" padding="[EMAIL PROTECTED]">

Does anyone know the reason and/or a solution?

Yes. Borders in XSL-FO do not work exactly like in HTML tables. XSL- FO has nothing like HTML/CSS's 'rules' attribute. The border you specify above, only applies to the fo:table, not to the descendants. If you also want borders on the fo:table-cells, then the only way to get there with FOP 0.93 is specifying borders directly on the cells themselves.


HTH!

Andreas


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

Reply via email to