Skip to content

Commit

Permalink
replace position-function
Browse files Browse the repository at this point in the history
with value from the n-attribute
  • Loading branch information
peterstadler committed Mar 18, 2024
1 parent 8d7ac21 commit 66f28a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xsl/common_main.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@
<xsl:element name="li">
<xsl:attribute name="id" select="@xml:id"/>
<!-- the value of @data-title will be injected as the title of the popover -->
<xsl:attribute name="data-title" select="concat(wega:getLanguageString('originalFootnotes', $lang), ' ', position())"/>
<xsl:attribute name="data-title" select="concat(wega:getLanguageString('originalFootnotes', $lang), ' ', @n)"/>
<xsl:element name="a">
<xsl:attribute name="href" select="wega:get-backref-link(@xml:id)"/>
<xsl:attribute name="class">fn-backref</xsl:attribute>
<xsl:choose>
<!-- for automatically numbered footnotes -->
<xsl:when test="@n">
<xsl:value-of select="position()"/>
<xsl:value-of select="@n"/>
</xsl:when>
<!-- default footnote backlink symbol -->
<xsl:otherwise>
Expand Down

0 comments on commit 66f28a7

Please sign in to comment.