[daisy] XSL-FO Table Header Problem

Hofmann. David d.hofmann at seeburger.de
Tue Jun 12 09:50:43 CDT 2007



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 ??

 

The concept code would be:

<xsl:template match="tr">

            <xsl:choose>

                        <xsl:when test="<!-- condition for: <tr>
contains one ore more <th> Tags -->">

                                   <fo:table-header>

                                               <fo:table-row>

 
<xsl:apply-templates select="td|th"/>

                                               </fo:table-row>

                                   </fo:table-header>

                        </xsl:when>

                        <xsl:otherwise>

                                   <fo:table-row>

                                               <xsl:apply-templates
select="td|th"/>

                                   </fo:table-row>

                        </xsl:otherwise>

            </xsl:choose>

</xsl:template>

 

Thank you very much for your help.

David

_________________________________________________________________________

SEEBURGER AG				Vorstand/Seeburger Executive Board:
Sitz der Gesellschaft/			Bernd Seeburger, Axel Haas, Michael Kleeberg
Registered Office:
Edisonstrasse 1				Vorsitzender des Aufsichtsrats/Chairperson of
D-75015 Bretten				the Seeburger Supervisory Board:
Tel.: 07252 / 96-0			Dr. Franz Scherer
Fax:  07252 / 96-2222
Internet: http://www.seeburger.de	Registergericht/Commercial Register:
e-mail: info at seeburger.de		HRB 240708 Mannheim
_________________________________________________________________________

Dieses E-Mail ist nur fur den Empfanger bestimmt, an den es gerichtet 
ist und kann vertrauliches bzw. unter das Berufsgeheimnis fallendes
Material enthalten. Jegliche darin enthaltene Ansicht oder Meinungs-
au?erung ist die des Autors und stellt nicht notwendigerweise die
Ansicht oder Meinung der Seeburger AG dar.
Sind Sie nicht der Empfanger, so haben Sie diese E-Mail rrtumlich
erhalten und jegliche Verwendung, Veroffentlichung, Weiterleitung,
Abschrift oder jeglicher Druck dieser E-Mail ist strengstens untersagt.
Weder die Seeburger AG noch der Absender (David Hofman)
ubernehmen die Haftung fur Viren; es obliegt Ihrer Verantwortung,
die E-Mail und deren Anhange (0) auf Viren zu prufen.

The present email addresses only the addressee which it targets and
may contain confidential material that may be protected by the
professional secret. The opinions reflected herein is not necessarily
the one of the Seeburger AG.
If you are not the addressee, you have accidentally got this email and
are not enabled to use, publish, forward, copy or print it in any way.
Whether the Seeburger AG, nor the sender (David Hofman) are
liable for viruses, being your own responsibility to check this email
and it attachments (0) for this purpose.
_________________________________________________________________________

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cocoondev.org/pipermail/daisy/attachments/20070612/27c0386a/attachment.htm


More information about the daisy mailing list