[daisy] XSL-FO Table Header Problem
Bruno Dumon
bruno at outerthought.org
Wed Jun 13 03:12:31 CDT 2007
On Tue, 2007-06-12 at 16:50 +0200, Hofmann. David wrote:
>
> Hello,
>
>
>
> I’m quite sure you know the problem with tables: if they don’t fit on
> a page, they are divided when there are page breaks.
>
> I added a keep-together attribute to make them move to next page to
> avoid the tables to be divided. This works, but there are still some
> tables that don’t even fit on a whole page.
>
> The proper solution here would be to repeat the table headers on every
> page break. I found out that therefore you need to define a
> <fo:table-header> area, but this is not done in html-to-xslfo.xsl.
>
> Now I would like to add the <fo:table-header>, but only if the <tr>
> contains <th> Elements.
>
> What is the proper condition for <xsl:when> here ??
<xsl:when test="th">
the expression "th" returns the set of all th child elements, which is
converted to true if this set is not empty.
>
--
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno at outerthought.org bruno at apache.org
More information about the daisy
mailing list