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