<xsl:template name="inherited.table.attribute">
<xsl:param name="entry" select="."/>
- <xsl:param name="tgroup" select="$entry/ancestor::tgroup[1]"/>
+ <xsl:param name="row" select="$entry/ancestor-or-self::row[1]"/>
<xsl:param name="colnum" select="0"/>
<xsl:param name="attribute" select="'colsep'"/>
+ <xsl:variable name="tgroup" select="$row/ancestor::tgroup[1]"/>
+
<xsl:variable name="entry.value">
<xsl:call-template name="get-attribute">
<xsl:with-param name="element" select="$entry"/>
<xsl:variable name="row.value">
<xsl:call-template name="get-attribute">
- <xsl:with-param name="element" select="$entry/ancestor::row[1]"/>
+ <xsl:with-param name="element" select="$row"/>
<xsl:with-param name="attribute" select="$attribute"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="rowsep">
<xsl:call-template name="inherited.table.attribute">
<xsl:with-param name="entry" select="NOT-AN-ELEMENT-NAME"/>
- <xsl:with-param name="tgroup" select="ancestor::tgroup"/>
+ <xsl:with-param name="row" select="ancestor-or-self::row[1]"/>
<xsl:with-param name="colnum" select="$colnum"/>
<xsl:with-param name="attribute" select="'rowsep'"/>
</xsl:call-template>
<xsl:variable name="colsep">
<xsl:call-template name="inherited.table.attribute">
<xsl:with-param name="entry" select="NOT-AN-ELEMENT-NAME"/>
- <xsl:with-param name="tgroup" select="ancestor::tgroup"/>
+ <xsl:with-param name="row" select="ancestor-or-self::row[1]"/>
<xsl:with-param name="colnum" select="$colnum"/>
<xsl:with-param name="attribute" select="'colsep'"/>
</xsl:call-template>
<xsl:variable name="rowsep">
<xsl:call-template name="inherited.table.attribute">
<xsl:with-param name="entry" select="NOT-AN-ELEMENT-NAME"/>
- <xsl:with-param name="tgroup" select="ancestor::tgroup"/>
+ <xsl:with-param name="row" select="ancestor-or-self::row[1]"/>
<xsl:with-param name="colnum" select="$colnum"/>
<xsl:with-param name="attribute" select="'rowsep'"/>
</xsl:call-template>
<xsl:variable name="colsep">
<xsl:call-template name="inherited.table.attribute">
<xsl:with-param name="entry" select="NOT-AN-ELEMENT-NAME"/>
- <xsl:with-param name="tgroup" select="ancestor::tgroup"/>
+ <xsl:with-param name="row" select="ancestor-or-self::row[1]"/>
<xsl:with-param name="colnum" select="$colnum"/>
<xsl:with-param name="attribute" select="'colsep'"/>
</xsl:call-template>