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

Gabor Kovesdan gabor at FreeBSD.org
Fri Jul 26 10:06:38 UTC 2013


Author: gabor
Date: Fri Jul 26 10:06:37 2013
New Revision: 42439
URL: http://svnweb.freebsd.org/changeset/doc/42439

Log:
  - More relaxed formatting in titles

Modified:
  projects/db5/share/xsl/freebsd-fo.xsl

Modified: projects/db5/share/xsl/freebsd-fo.xsl
==============================================================================
--- projects/db5/share/xsl/freebsd-fo.xsl	Fri Jul 26 09:54:13 2013	(r42438)
+++ projects/db5/share/xsl/freebsd-fo.xsl	Fri Jul 26 10:06:37 2013	(r42439)
@@ -538,4 +538,33 @@
       <xsl:call-template name="freebsd.author"/>
     </fo:inline>
   </xsl:template>
+
+  <xsl:template match="db:title" mode="title.markup">
+    <xsl:apply-templates mode="titlepage.mode"/>
+  </xsl:template>
+
+  <xsl:template match="db:replaceable" mode="titlepage.mode">
+    <fo:inline font-style="italic">
+      <xsl:apply-templates/>
+    </fo:inline>
+  </xsl:template>
+
+  <xsl:template match="db:citerefentry" mode="titlepage.mode">
+    <xsl:variable name="xhref">
+      <xsl:text>http://www.FreeBSD.org/cgi/man.cgi?query=</xsl:text>
+      <xsl:value-of select="db:refentrytitle"/>
+      <xsl:text>&amp;sektion=</xsl:text>
+      <xsl:value-of select="db:manvolnum"/>
+    </xsl:variable>
+
+    <fo:basic-link external-destination="url({$xhref})">
+      <xsl:value-of select="concat(db:refentrytitle, '(', db:manvolnum, ')')"/>
+    </fo:basic-link>
+  </xsl:template>
+
+  <xsl:template match="db:filename" mode="titlepage.mode">
+    <fo:inline font-family="$monospace.font.family">
+      <xsl:apply-templates/>
+    </fo:inline>
+  </xsl:template>
 </xsl:stylesheet>


More information about the svn-doc-projects mailing list