</xsl:when>
<xsl:otherwise>
<xsl:variable name="pfoot" select="preceding::footnote"/>
- <xsl:variable name="ptfoot" select="preceding::table//footnote
- |preceding::informaltable//footnote"/>
+ <xsl:variable name="ptfoot" select="preceding::tgroup//footnote"/>
<xsl:number value="count($pfoot) - count($ptfoot) + 1" format="1"/>
</xsl:otherwise>
</xsl:choose>
<xsl:template name="formal.object.heading">
<xsl:param name="object" select="."/>
<fo:block xsl:use-attribute-sets="formal.title.properties">
- <xsl:apply-templates select="$object" mode="object.title.markup"/>
+ <xsl:apply-templates select="$object" mode="object.title.markup">
+ <xsl:with-param name="allow-anchors" select="1"/>
+ </xsl:apply-templates>
</fo:block>
</xsl:template>
</xsl:variable>
<xsl:variable name="footnotes">
- <xsl:if test=".//footnote">
+ <xsl:if test="tgroup//footnote">
<fo:block font-family="{$body.font.family}"
font-size="{$footnote.font.size}"
keep-together.within-column="1"
keep-with-previous="always">
- <xsl:apply-templates select=".//footnote" mode="table.footnote.mode"/>
+ <xsl:apply-templates select="tgroup//footnote" mode="table.footnote.mode"/>
</fo:block>
</xsl:if>
</xsl:variable>
</xsl:variable>
<xsl:variable name="footnotes">
- <xsl:if test=".//footnote">
+ <xsl:if test="tgroup//footnote">
<fo:block font-family="{$body.font.family}"
font-size="{$footnote.font.size}"
keep-together.within-column="1"
keep-with-previous="always">
- <xsl:apply-templates select=".//footnote" mode="table.footnote.mode"/>
+ <xsl:apply-templates select="tgroup//footnote" mode="table.footnote.mode"/>
</fo:block>
</xsl:if>
</xsl:variable>
</xsl:variable>
<xsl:choose>
- <xsl:when test="ancestor::table|ancestor::informaltable">
+ <xsl:when test="ancestor::tgroup">
<sup>
<xsl:text>[</xsl:text>
<a name="{$name}" href="{$href}">
<xsl:template match="footnote" mode="footnote.number">
<xsl:choose>
- <xsl:when test="ancestor::table or ancestor::informaltable">
+ <xsl:when test="ancestor::tgroup">
<xsl:number level="any" from="table|informaltable" format="a"/>
</xsl:when>
<xsl:when test="ancestor::refentry">
<xsl:template name="process.footnotes">
<xsl:variable name="footnotes" select=".//footnote"/>
<xsl:variable name="table.footnotes"
- select=".//table//footnote|.//informaltable//footnote"/>
+ select=".//tgroup//footnote"/>
<!-- Only bother to do this if there's at least one non-table footnote -->
<xsl:if test="count($footnotes)>count($table.footnotes)">
</xsl:choose>
</xsl:template>
-<xsl:template match="informaltable//footnote|table//footnote"
+<xsl:template match="tgroup//footnote"
mode="process.footnote.mode">
</xsl:template>