]> git.ipfire.org Git - thirdparty/systemd.git/blob - man/custom-man.xsl
Merge pull request #9199 from poettering/copy-file-atomic
[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
11 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12 xmlns:exsl="http://exslt.org/common"
13 extension-element-prefixes="exsl"
14 version="1.0">
15
16 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"/>
17
18 <xsl:template name="top.comment" />
19
20 <xsl:template name="TH.title.line">
21 <xsl:param name="title"/>
22 <xsl:param name="section"/>
23 <xsl:param name="extra1"/>
24 <xsl:param name="extra2"/>
25 <xsl:param name="extra3"/>
26
27 <xsl:call-template name="mark.subheading"/>
28 <xsl:text>.TH "</xsl:text>
29 <xsl:call-template name="string.upper">
30 <xsl:with-param name="string">
31 <xsl:value-of select="normalize-space($title)"/>
32 </xsl:with-param>
33 </xsl:call-template>
34 <xsl:text>" "</xsl:text>
35 <xsl:value-of select="normalize-space($section)"/>
36 <xsl:text>" "" "systemd </xsl:text>
37 <xsl:value-of select="$systemd.version"/>
38 <xsl:text>" "</xsl:text>
39 <xsl:value-of select="normalize-space($extra3)"/>
40 <xsl:text>"&#10;</xsl:text>
41 <xsl:call-template name="mark.subheading"/>
42 </xsl:template>
43
44 <xsl:template match="literal">
45 <xsl:if test="$man.hyphenate.computer.inlines = 0">
46 <xsl:call-template name="suppress.hyphenation"/>
47 </xsl:if>
48 <xsl:text>"</xsl:text>
49 <xsl:call-template name="inline.monoseq"/>
50 <xsl:text>"</xsl:text>
51 </xsl:template>
52
53 </xsl:stylesheet>