Skip to content

Commit

Permalink
Fix #524: Add footnote template in mode=xref-to
Browse files Browse the repository at this point in the history
Fix the "???" problem
  • Loading branch information
tomschr committed Jul 26, 2023
1 parent 92502d1 commit a1d9af5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions suse2022-ns/xhtml/xref.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,21 @@
<xsl:apply-templates select="."/>
</xsl:template>

<xsl:template match="d:footnote" mode="xref-to">
<xsl:param name="referrer"/>
<xsl:param name="xrefstyle"/>
<xsl:param name="verbose" select="1"/>
<xsl:variable name="href">
<xsl:text>ftn.</xsl:text>
<xsl:call-template name="object.id">
<xsl:with-param name="object" select="."/>
</xsl:call-template>
</xsl:variable>

<a href="{$href}">
<sup>[<xsl:apply-templates select="." mode="footnote.number"/>]</sup>
</a>
</xsl:template>

<xsl:template match="d:xref" name="xref">
<xsl:variable name="context" select="."/>
Expand Down

0 comments on commit a1d9af5

Please sign in to comment.