Next in thread → Next in month →

Re: [docbook] docbook-xsl HTML table element doesn't go well

From
Bob Stayton <>
Date
2005-02-24T17:19:31+00:00
ID
020701c51a94$f3835680$6b00a8c0@toshiro
Thread
Re: [docbook] docbook-xsl HTML table element doesn't go well
It turns out that FOP does not support fo:table-and-caption, which is what
the XSL template for an HTML <table> element uses.  If the table is changed
to an <informaltable>, then it works in FOP, but you lose the caption.  I
filed a bug report on this and will fix it soon.  In the meantime, you could
convert the table to CALS markup.

Bob Stayton
Sagehill Enterprises
DocBook Consulting



----- Original Message ----- 
From: "Hisashi Yamaguchi" <>
To: <>
Sent: Thursday, February 24, 2005 1:55 AM
Subject: [docbook] docbook-xsl HTML table element doesn't go well


> Hi
>
> I'm try to convert a docbook document
> that have HTML table elements to PDF.
> Even though the docbook-xsl's manual
> says it's possible to convert HTML table elements,
> white blank appears  on a PDF instead of appearing table data.
> http://www.sagehill.net/docbookxsl/DocbookHtmlTables.html
>
> Any comments would be appreciated.
> I hope it's gonna go well.
>
> --Hisashi.Yamaguchi
>
>
> Following is what I'm trying.
> 1. Create a docbook document that have HTML table elements.
>
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
>
"http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
> <article>
> <articleinfo>
> <title>Unit Test: table.001</title>
> <releaseinfo role="CVS">$Id: table.001.xml,v 1.2 2002/01/18 21:06:45
nwalsh
> Exp $</releaseinfo>
> <author><firstname>Norman</firstname><surname>Walsh</surname>
>
<affiliation><address><email></email></address></affiliation>
> </author>
> </articleinfo>
>
> <table frame="all">
> <caption>TFoot Test</caption>
> <tfoot>
> <tr>
> <td>Foot Left</td>
> <td>Foot Right</td>
> </tr>
> </tfoot>
> <tbody>
> <tr>
> <td>Body Left</td>
> <td>Body Right</td>
>
> </tr>
> </tbody>
>
> </table>
> </article>
>
> 2. Convert docbook to fo by applying docbook-xsl/fo stylesheet.
>
> 3. Convert fo to pdf with Apache FOP.
>
>
>
>
>
Next in thread → Next in month →