W3C home > Mailing lists > Public > www-xsl-fo@w3.org > October 2003

detect a table header rupture

From: cb <christian@barzoi.fr>
Date: Wed, 8 Oct 2003 22:58:18 +0200
To: <www-xsl-fo@w3.org>
Message-ID: <000d01c38dde$e6556c80$202f4252@athlon>
Hello everyone,
 
I need to have a < gap > between the header and the first row of a
table.
 
This code works:
 
      <xsl:template match="tbody/row">
   
      <fo:table-row keep-together="always"
keep-with-next.within-column="4" keep-with-previous.within-column="4">
  <!-- add some margin -->
    <xsl:if test="position() = 2 ">
               <xsl:attribute name="height">+15pt</xsl:attribute>
</xsl:if>
         <xsl:if test="@rowsep = '0' ">
            <xsl:attribute
name="border-bottom-style">none</xsl:attribute>
         </xsl:if>
         <xsl:apply-templates/>
      </fo:table-row>
   </xsl:template>
 
 
But, as the table split on another page, the position() test is not
valid, and the gap is missing
 
Any clue?
 
Christian
 
 
Received on Wednesday, 8 October 2003 16:57:30 GMT

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