svn commit: r41613 - projects/xml-tools/share/xsl

Gabor Kovesdan gabor at FreeBSD.org
Sun May 12 17:37:58 UTC 2013


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 at FreeBSD.org">doc at 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>


More information about the svn-doc-projects mailing list