</xsl:call-template>
</xsl:variable>
- <xsl:variable name="lastrow">
- <xsl:choose>
- <xsl:when test="ancestor::thead">0</xsl:when>
- <xsl:when test="ancestor::tfoot
- and not(ancestor::row/following-sibling::row)">1</xsl:when>
- <xsl:when test="not(ancestor::tfoot)
- and ancestor::tgroup/tfoot">0</xsl:when>
- <xsl:when test="not(ancestor::tfoot)
- and not(ancestor::tgroup/tfoot)
- and not(ancestor::row/following-sibling::row)">1</xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="lastcol">
- <xsl:choose>
- <xsl:when test="$colnum < ancestor::tgroup/@cols">0</xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
<fo:table-cell text-align="center"
display-align="center"
xsl:use-attribute-sets="table.cell.padding">
- <xsl:choose>
- <xsl:when test="$frame = 'all' or $frame = 'topbot' or $frame = 'bottom'">
- <xsl:if test="$lastrow = 0">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'bottom'"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$rowsep > 0">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'bottom'"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:if test="$rowsep > 0">
+ <xsl:call-template name="border">
+ <xsl:with-param name="side" select="'bottom'"/>
+ </xsl:call-template>
+ </xsl:if>
- <xsl:choose>
- <xsl:when test="$frame = 'all' or $frame = 'sides'">
- <xsl:if test="$lastcol = 0">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'right'"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$colsep > 0">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'right'"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:if test="$colsep > 0">
+ <xsl:call-template name="border">
+ <xsl:with-param name="side" select="'right'"/>
+ </xsl:call-template>
+ </xsl:if>
<fo:block/> <!-- fo:table-cell should not be empty -->
-<!--
- <xsl:text>[e,</xsl:text>
- <xsl:value-of select="$lastrow"/>
- <xsl:text>,</xsl:text>
- <xsl:value-of select="$lastcol"/>
- <xsl:text>]</xsl:text>
--->
</fo:table-cell>
</xsl:template>
</xsl:call-template>
</xsl:variable>
+<!--
+ <xsl:message><xsl:value-of select="."/>: <xsl:value-of select="$rowsep"/></xsl:message>
+-->
+
<xsl:variable name="colsep">
<xsl:call-template name="inherited.table.attribute">
<xsl:with-param name="entry" select="."/>
</xsl:call-template>
</xsl:variable>
- <xsl:variable name="lastrow">
- <xsl:choose>
- <xsl:when test="ancestor::thead">0</xsl:when>
- <xsl:when test="ancestor::tfoot
- and not(ancestor::row/following-sibling::row)">1</xsl:when>
- <xsl:when test="not(ancestor::tfoot)
- and ancestor::tgroup/tfoot">0</xsl:when>
- <xsl:when test="not(ancestor::tfoot)
- and not(ancestor::tgroup/tfoot)
- and not(ancestor::row/following-sibling::row)">1</xsl:when>
- <xsl:otherwise>0</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="lastcol">
- <xsl:choose>
- <xsl:when test="$col < ancestor::tgroup/@cols">0</xsl:when>
- <xsl:otherwise>1</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
<xsl:choose>
<xsl:when test="$spans != '' and not(starts-with($spans,'0:'))">
<xsl:call-template name="entry">
<fo:table-cell xsl:use-attribute-sets="table.cell.padding">
<xsl:call-template name="anchor"/>
- <xsl:choose>
- <xsl:when test="$frame = 'all' or $frame = 'topbot' or $frame = 'bottom'">
- <xsl:if test="$lastrow = 0">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'bottom'"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$rowsep > 0">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'bottom'"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:if test="$rowsep > 0">
+ <xsl:call-template name="border">
+ <xsl:with-param name="side" select="'bottom'"/>
+ </xsl:call-template>
+ </xsl:if>
- <xsl:choose>
- <xsl:when test="$frame = 'all' or $frame = 'sides'">
- <xsl:if test="$lastcol = 0">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'right'"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:if test="$colsep > 0">
- <xsl:call-template name="border">
- <xsl:with-param name="side" select="'right'"/>
- </xsl:call-template>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
+ <xsl:if test="$colsep > 0">
+ <xsl:call-template name="border">
+ <xsl:with-param name="side" select="'right'"/>
+ </xsl:call-template>
+ </xsl:if>
<xsl:if test="@morerows">
<xsl:attribute name="number-rows-spanned">
</xsl:if>
</xsl:if>
-<!--
- <xsl:text>[</xsl:text>
- <xsl:value-of select="$lastrow"/>
- <xsl:text>,</xsl:text>
- <xsl:value-of select="$lastcol"/>
- <xsl:text>]</xsl:text>
--->
-
<!--
<xsl:text>(</xsl:text>
<xsl:value-of select="$rowsep"/>