<!-- Navigation -->
<a class="previous_page" href="{prev_url}"><![CDATA[<-previous]]></a>
- <xsl:if test="next_url">
- <a class="next_page" href="{next_url}"><![CDATA[next->]]></a>
+ <xsl:if test="next_url">
+ <a class="next_page" href="{next_url}"><![CDATA[next->]]></a>
</xsl:if>
<!-- Chapter Wrapper -->
<!-- Chapter Title -->
<h2 id="{@id}" class="{@class}">
- <xsl:value-of select="concat('Chapter ',chapter_id,' - ',title)"/>
+ <a href="{toc_url}">
+ <xsl:value-of select="concat('Chapter ',chapter_id,' - ',title)"/>
+ </a>
</h2>
<!-- Chapter Info -->
<!-- Navigation -->
<a class="previous_page" href="{prev_url}"><![CDATA[<-previous]]></a>
- <a class="next_page" href="{next_url}"><![CDATA[next->]]></a>
+ <a class="toc_page" href="{prev_url}"><![CDATA[Table of Contents]]></a>
+ <xsl:if test="next_url">
+ <a class="next_page" href="{next_url}"><![CDATA[next->]]></a>
+ </xsl:if>
</xsl:template>
</xsl:template>
<!-- Ignore -->
- <xsl:template match="chapter_id|prev_url|next_url|canonical_url|current_url|old_versions"/>
+ <xsl:template match="chapter_id|prev_url|next_url|toc_url|canonical_url|current_url|old_versions"/>
</xsl:stylesheet>
display: none;
}
-.previous_page, .next_page {
+.previous_page, .next_page, .toc_page {
font-size: 1.2em;
}
clear: right;
}
+.toc_page {
+ position: absolute;
+ right: 13em;
+ left: 13em;
+ text-align: center;
+}
+
#chapter {
line-height: 1.5;
}