chiark / gitweb /
01b5620831eeb24f46d555375725340376975b1e
[elogind.git] / man / custom-man.xsl
1 <?xml version='1.0'?> <!--*-nxml-*-->
2
3 <!--
4   SPDX-License-Identifier: LGPL-2.1+
5
6   Copyright © 2013 Zbigniew Jędrzejewski-Szmek
7 -->
8
9 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
10                 xmlns:exsl="http://exslt.org/common"
11                 extension-element-prefixes="exsl"
12                 version="1.0">
13
14 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"/>
15
16 <xsl:template name="top.comment" />
17
18 <xsl:template name="TH.title.line">
19     <xsl:param name="title"/>
20     <xsl:param name="section"/>
21     <xsl:param name="extra1"/>
22     <xsl:param name="extra2"/>
23     <xsl:param name="extra3"/>
24
25     <xsl:call-template name="mark.subheading"/>
26     <xsl:text>.TH "</xsl:text>
27     <xsl:call-template name="string.upper">
28       <xsl:with-param name="string">
29         <xsl:value-of select="normalize-space($title)"/>
30       </xsl:with-param>
31     </xsl:call-template>
32     <xsl:text>" "</xsl:text>
33     <xsl:value-of select="normalize-space($section)"/>
34     <xsl:text>" "" "elogind </xsl:text>
35     <xsl:value-of select="$elogind.version"/>
36     <xsl:text>" "</xsl:text>
37     <xsl:value-of select="normalize-space($extra3)"/>
38     <xsl:text>"&#10;</xsl:text>
39     <xsl:call-template name="mark.subheading"/>
40 </xsl:template>
41
42 <xsl:template match="literal">
43   <xsl:if test="$man.hyphenate.computer.inlines = 0">
44     <xsl:call-template name="suppress.hyphenation"/>
45   </xsl:if>
46   <xsl:text>"</xsl:text>
47   <xsl:call-template name="inline.monoseq"/>
48   <xsl:text>"</xsl:text>
49 </xsl:template>
50
51 </xsl:stylesheet>