svn commit: r42284 - projects/db5/share/xsl

Gabor Kovesdan gabor at FreeBSD.org
Mon Jul 15 13:15:07 UTC 2013


Author: gabor
Date: Mon Jul 15 13:15:06 2013
New Revision: 42284
URL: http://svnweb.freebsd.org/changeset/doc/42284

Log:
  - Like in XHTML, do not generate outer links in TOC entries since
    TOC entries themselves are cross-refereces, so move a customization to
    the common part.

Modified:
  projects/db5/share/xsl/freebsd-common.xsl
  projects/db5/share/xsl/freebsd-xhtml-common.xsl

Modified: projects/db5/share/xsl/freebsd-common.xsl
==============================================================================
--- projects/db5/share/xsl/freebsd-common.xsl	Mon Jul 15 08:29:04 2013	(r42283)
+++ projects/db5/share/xsl/freebsd-common.xsl	Mon Jul 15 13:15:06 2013	(r42284)
@@ -29,4 +29,14 @@
   <xsl:param name="generate.index" select="0"/>
 
   <xsl:param name="graphic.default.extension">png</xsl:param>
+
+  <!-- No links in TOC -->
+  <xsl:template match="db:citerefentry" mode="no.anchor.mode">
+    <xsl:apply-templates select="*" mode="no.anchor.mode"/>
+  </xsl:template>
+
+  <!-- No links in TOC -->
+  <xsl:template match="db:refentrytitle" mode="no.anchor.mode">
+    <xsl:value-of select="."/>
+  </xsl:template>
 </xsl:stylesheet>

Modified: projects/db5/share/xsl/freebsd-xhtml-common.xsl
==============================================================================
--- projects/db5/share/xsl/freebsd-xhtml-common.xsl	Mon Jul 15 08:29:04 2013	(r42283)
+++ projects/db5/share/xsl/freebsd-xhtml-common.xsl	Mon Jul 15 13:15:06 2013	(r42284)
@@ -66,14 +66,6 @@
     </div>
   </xsl:template>
 
-  <xsl:template match="db:citerefentry" mode="no.anchor.mode">
-    <xsl:apply-templates select="*" mode="no.anchor.mode"/>
-  </xsl:template>
-
-  <xsl:template match="db:refentrytitle" mode="no.anchor.mode">
-    <xsl:value-of select="."/>
-  </xsl:template>
-
   <!-- Customization to allow role="nolink" -->
   <xsl:template match="db:email">
     <xsl:call-template name="inline.monoseq">


More information about the svn-doc-projects mailing list