Skip to content

Commit

Permalink
only add data-title if an n-attribute is present
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstadler committed Apr 24, 2024
1 parent ba8957a commit 6e40735
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xsl/common_main.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@
<xsl:for-each select="//tei:footNote">
<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), ' ', @n)"/>
<xsl:if test="@n">
<!-- 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), ' ', @n)"/>
</xsl:if>
<xsl:element name="a">
<xsl:attribute name="href" select="wega:get-backref-link(@xml:id)"/>
<xsl:attribute name="class">fn-backref</xsl:attribute>
Expand Down

0 comments on commit 6e40735

Please sign in to comment.