W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2002

ASAP: Table border in XSL FO

From: <acallist@cs.uu.nl>
Date: Tue Jun 25 06:23:43 2002
Message-Id: <200206251023.g5PANfw17253@ns1.euras.nl>
To: <www-xsl-fo@w3.org>

Hi,

I have a question concerning the table border in XSL FO.
I use AntennaHouse XSL Formatter and I get a table without borders. 
I've tried to be more specific and add "border-width" attribute to the table element. Still no borders.
I use AntennaHouse to convert my xml file to PDF.

Here's my xsl file:

<xsl:template match="table">
<fo:table-and-caption caption-side="before">
<fo:table-caption
	padding-top="8pt">
<fo:block
	font-family="sans-serif"
	font-weight="bold"
	font-size="12pt"
	text-align="center">
<xsl:value-of select="caption"/>
</fo:block>
</fo:table-caption>
<fo:table
	border-width="12pt"
	border-collapse="separate"
	text-align="center">
<fo:table-body>
   <xsl:for-each select="trow">
    <fo:table-row>
     <xsl:for-each select="th">
       <fo:table-cell
	   padding-left="5pt"
	   padding-right="3pt">
       <fo:block
	   font-weight="bold">
        <xsl:value-of select="."/>
       </fo:block>
      </fo:table-cell>
    </xsl:for-each>

     <xsl:for-each select="td">
      <fo:table-cell
            padding-left="5pt"
	   padding-right="3pt">
       <fo:block
	   font-weight="normal">
       <xsl:value-of select="."/>
      </fo:block>
     </fo:table-cell>
    </xsl:for-each>
   </fo:table-row>
  </xsl:for-each>
</fo:table-body>
</fo:table>

</fo:table-and-caption>


</xsl:template>

Can someone help me with this? Thanks !

Regards,

Astrid

___________________________________
NOCC, http://nocc.sourceforge.net
Received on Tuesday, 25 June 2002 06:23:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:09 GMT