- More relaxed formatting in titles

This commit is contained in:
Gabor Kovesdan 2013-07-26 10:06:37 +00:00
parent 69b5fa65aa
commit 3d6cfb1cc2
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/projects/db5/; revision=42439

View file

@ -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>