--- a/html.xsl Tue Dec 29 21:26:32 2015 -0500
+++ b/html.xsl Tue Dec 29 21:32:40 2015 -0500
@@ -59,8 +59,9 @@
<body class="book">
<xsl:apply-templates select="docinfo/date"/>
<xsl:apply-templates/>
+ <p><strong>Table des Matières</strong></p>
<ul>
- <xsl:apply-templates mode="book-toc" select="section|story|poetry"/>
+ <xsl:apply-templates mode="book-toc" select="section|story|poetry"/>
</ul>
<hr/>
<address>
@@ -305,7 +306,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>
@@ -313,7 +314,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"/>
@@ -465,6 +466,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"/>