- Add a doc format navigation at the end of the titlepage as we used to have

This commit is contained in:
Gabor Kovesdan 2013-05-12 17:37:57 +00:00
parent 0438408178
commit d8e60c9b38
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/projects/xml-tools/; revision=41613

View file

@ -10,10 +10,10 @@
exclude-result-prefixes="#default">
<!-- Include the common customizations -->
<xsl:include href="freebsd-common.xsl"/>
<xsl:import href="freebsd-common.xsl"/>
<!-- Include customized XHTML titlepage -->
<xsl:include href="freebsd-xhtml-titlepage.xsl"/>
<xsl:import href="freebsd-xhtml-titlepage.xsl"/>
<!-- Redefine variables, and replace templates as necessary here -->
@ -49,6 +49,20 @@
For questions about this documentation, e-mail &lt;<a href="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>&gt;.</small></p>
</xsl:template>
<xsl:template name="docformatnav">
<xsl:variable name="single.fname">
<xsl:choose>
<xsl:when test="/book">book.html</xsl:when>
<xsl:when test="/article">article.html</xsl:when>
</xsl:choose>
</xsl:variable>
<div class="docformatnavi">
[ <a href="index.html">Split HTML</a> /
<a href="{$single.fname}">Single HTML</a> ]
</div>
</xsl:template>
<xsl:template match="citerefentry" mode="no.anchor.mode">
<xsl:apply-templates select="*" mode="no.anchor.mode"/>
</xsl:template>
@ -284,4 +298,11 @@
</xsl:if>
<xsl:text>.</xsl:text>
</xsl:template>
<!-- Hook in format navigation at the end of the titlepage -->
<xsl:template name="book.titlepage.separator">
<xsl:call-template name="docformatnav"/>
<hr/>
</xsl:template>
</xsl:stylesheet>