chiark / gitweb /
Fix segv introduced by 2fd069b18e525860514a70d3ea08410ca122d3e2
[elogind.git] / man / custom-man.xsl
1 <?xml version='1.0'?> <!--*-nxml-*-->
2
3 <!--
4   This file is part of systemd.
5
6   Copyright 2013 Zbigniew JÄ™drzejewski-Szmek
7
8   systemd is free software; you can redistribute it and/or modify it
9   under the terms of the GNU Lesser General Public License as published by
10   the Free Software Foundation; either version 2.1 of the License, or
11   (at your option) any later version.
12
13   systemd is distributed in the hope that it will be useful, but
14   WITHOUT ANY WARRANTY; without even the implied warranty of
15   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16   Lesser General Public License for more details.
17
18   You should have received a copy of the GNU Lesser General Public License
19   along with systemd; If not, see <http://www.gnu.org/licenses/>.
20 -->
21
22 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
23                 xmlns:exsl="http://exslt.org/common"
24                 extension-element-prefixes="exsl"
25                 version="1.0">
26
27 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"/>
28
29 <xsl:template name="top.comment" />
30
31 <xsl:template name="TH.title.line">
32     <xsl:param name="title"/>
33     <xsl:param name="section"/>
34     <xsl:param name="extra1"/>
35     <xsl:param name="extra2"/>
36     <xsl:param name="extra3"/>
37
38     <xsl:call-template name="mark.subheading"/>
39     <xsl:text>.TH "</xsl:text>
40     <xsl:call-template name="string.upper">
41       <xsl:with-param name="string">
42         <xsl:value-of select="normalize-space($title)"/>
43       </xsl:with-param>
44     </xsl:call-template>
45     <xsl:text>" "</xsl:text>
46     <xsl:value-of select="normalize-space($section)"/>
47     <xsl:text>" "" "systemd </xsl:text>
48     <xsl:value-of select="$systemd.version"/>
49     <xsl:text>" "</xsl:text>
50     <xsl:value-of select="normalize-space($extra3)"/>
51     <xsl:text>"&#10;</xsl:text>
52     <xsl:call-template name="mark.subheading"/>
53 </xsl:template>
54
55 <xsl:template match="literal">
56   <xsl:if test="$man.hyphenate.computer.inlines = 0">
57     <xsl:call-template name="suppress.hyphenation"/>
58   </xsl:if>
59   <xsl:text>"</xsl:text>
60   <xsl:call-template name="inline.monoseq"/>
61   <xsl:text>"</xsl:text>
62 </xsl:template>
63
64 </xsl:stylesheet>