diff options
author | Adrian Kummerlaender | 2018-11-18 14:22:50 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2018-11-18 14:22:50 +0100 |
commit | db693f374cea1c8f8502399e3a2651f3a8946145 (patch) | |
tree | cdfbda5f3f8845df0eaa5007279ecbadbe34db31 /source/99_result | |
parent | b1653ad23d6fcea62e18703d6f9691eb575db761 (diff) | |
download | Overview-db693f374cea1c8f8502399e3a2651f3a8946145.tar Overview-db693f374cea1c8f8502399e3a2651f3a8946145.tar.gz Overview-db693f374cea1c8f8502399e3a2651f3a8946145.tar.bz2 Overview-db693f374cea1c8f8502399e3a2651f3a8946145.tar.lz Overview-db693f374cea1c8f8502399e3a2651f3a8946145.tar.xz Overview-db693f374cea1c8f8502399e3a2651f3a8946145.tar.zst Overview-db693f374cea1c8f8502399e3a2651f3a8946145.zip |
Fix footnote links in latest articles section
See 76f8676 @ blog.kummerlaender.eu
Diffstat (limited to 'source/99_result')
-rw-r--r-- | source/99_result/overview.xsl | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source/99_result/overview.xsl b/source/99_result/overview.xsl index 6771d1f..a21aa8a 100644 --- a/source/99_result/overview.xsl +++ b/source/99_result/overview.xsl @@ -193,6 +193,16 @@ </html> </xsl:template> +<xsl:template match="a[@class = 'footnote-ref']" mode="xhtml"> + <xsl:element name="{local-name()}" namespace="http://www.w3.org/1999/xhtml"> + <xsl:copy-of select="@*[name()='id' or name()='class']"/> + <xsl:attribute name="href"> + <xsl:value-of select="concat(./ancestor::entry/link, '/', ./@href)"/> + </xsl:attribute> + <xsl:apply-templates select="node()" mode="xhtml"/> + </xsl:element> +</xsl:template> + <xsl:template match="text()|@*"/> </xsl:stylesheet> |