Date: Sun, 12 May 2013 17:37:58 +0000 (UTC) From: Gabor Kovesdan <gabor@FreeBSD.org> To: doc-committers@freebsd.org, svn-doc-projects@freebsd.org Subject: svn commit: r41613 - projects/xml-tools/share/xsl Message-ID: <201305121737.r4CHbwYf003606@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gabor Date: Sun May 12 17:37:57 2013 New Revision: 41613 URL: http://svnweb.freebsd.org/changeset/doc/41613 Log: - Add a doc format navigation at the end of the titlepage as we used to have Modified: projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl Modified: projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl ============================================================================== --- projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl Sun May 12 17:37:10 2013 (r41612) +++ projects/xml-tools/share/xsl/freebsd-xhtml-common.xsl Sun May 12 17:37:57 2013 (r41613) @@ -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 <<a href="mailto:doc@FreeBSD.org">doc@FreeBSD.org</a>>.</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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305121737.r4CHbwYf003606>