On Wednesday 15 August 2007 14:45, Andreas L Delmelle wrote:
> 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.
>

Some further 'gotchas':

1. In XSL-FO for all length values in properties you should specify a 
unit, preferably a media / resolution independent unit like mm or pt.

2. FOP doesn't support "auto" table layout atm.

3. I believe the default for border-style is none so even when 
specifying something like border="1mm" you will get no border as the 
implied border-style is none. So try something like border="2pt solid 
black" for example on each cell.

>
> HTH!
>
> Andreas

Manuel

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

Reply via email to