--- a/html.xsl Sat Feb 05 13:26:50 2011 -0500
+++ b/html.xsl Mon Sep 14 11:24:14 2015 -0400
@@ -300,7 +300,7 @@
<xsl:value-of select="title/text()"/>
</xsl:template>
-<xsl:template match="section|story|poetry" mode="navbar-link">
+<xsl:template match="section|story|poetry" mode="href">
<xsl:call-template name="get-id"/>
</xsl:template>
@@ -308,7 +308,7 @@
<xsl:param name="prefix"></xsl:param>
<a>
<xsl:attribute name="href">
- <xsl:apply-templates select="." mode="navbar-link"/>
+ <xsl:apply-templates select="." mode="href"/>
<xsl:text>.html</xsl:text>
</xsl:attribute>
<xsl:value-of select="$prefix"/>
@@ -460,6 +460,17 @@
<xsl:template match="*" mode="xref"/>
+<xsl:template match="link">
+ <xsl:variable name="linkend" select="@linkend"/>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:apply-templates select="//*[@id=$linkend]" mode="href"/>
+ <xsl:text>.html</xsl:text>
+ </xsl:attribute>
+ <xsl:apply-templates/>
+ </a>
+</xsl:template>
+
<xsl:template match="section/title"/>
<xsl:template match="section/subtitle"/>