aboutsummaryrefslogtreecommitdiff
path: root/share/xsl/freebsd-fo.xsl
diff options
context:
space:
mode:
authorGabor Kovesdan <gabor@FreeBSD.org>2013-07-26 10:06:37 +0000
committerGabor Kovesdan <gabor@FreeBSD.org>2013-07-26 10:06:37 +0000
commit3d6cfb1cc2327b51e87fa7a3a8c24757085892a1 (patch)
tree1c580b2ff288ef9ebfe3fc57f891acd4b93a60b0 /share/xsl/freebsd-fo.xsl
parent69b5fa65aae20fb1a9c6453491503c7c60a54fee (diff)
downloaddoc-3d6cfb1cc2327b51e87fa7a3a8c24757085892a1.tar.gz
doc-3d6cfb1cc2327b51e87fa7a3a8c24757085892a1.zip
- More relaxed formatting in titles
Notes
Notes: svn path=/projects/db5/; revision=42439
Diffstat (limited to 'share/xsl/freebsd-fo.xsl')
-rw-r--r--share/xsl/freebsd-fo.xsl29
1 files changed, 29 insertions, 0 deletions
diff --git a/share/xsl/freebsd-fo.xsl b/share/xsl/freebsd-fo.xsl
index e6fb6a21e9..023d16a91e 100644
--- a/share/xsl/freebsd-fo.xsl
+++ b/share/xsl/freebsd-fo.xsl
@@ -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>&#38;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>