aboutsummaryrefslogtreecommitdiff
path: root/share/xsl/freebsd-xhtml-common.xsl
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2013-05-12 17:37:57 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2013-05-12 17:37:57 +0000
commitd8e60c9b381b5f178ddb4d3eb5bfa3fae91eac93 (patch)
tree819aa76ba64ce318049aa08fec076d6b58b60329 /share/xsl/freebsd-xhtml-common.xsl
parent0438408178e1f3ebbd35c22b3cc2633712214608 (diff)
downloaddoc-d8e60c9b381b5f178ddb4d3eb5bfa3fae91eac93.tar.gz
doc-d8e60c9b381b5f178ddb4d3eb5bfa3fae91eac93.zip
- Add a doc format navigation at the end of the titlepage as we used to have
Notes
Notes: svn path=/projects/xml-tools/; revision=41613
Diffstat (limited to 'share/xsl/freebsd-xhtml-common.xsl')
-rw-r--r--share/xsl/freebsd-xhtml-common.xsl25
1 files changed, 23 insertions, 2 deletions
diff --git a/share/xsl/freebsd-xhtml-common.xsl b/share/xsl/freebsd-xhtml-common.xsl
index 6dd1f6495f..fb8b9bc866 100644
--- a/share/xsl/freebsd-xhtml-common.xsl
+++ b/share/xsl/freebsd-xhtml-common.xsl
@@ -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>