1
<?xml version="1.0" encoding="iso-8859-15"?>
2
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
5
This file is part of PulseAudio.
7
PulseAudio is free software; you can redistribute it and/or modify it under
8
the terms of the GNU General Public License as published by the Free
9
Software Foundation; either version 2 of the License, or (at your
10
option) any later version.
12
PulseAudio is distributed in the hope that it will be useful, but WITHOUT
13
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17
You should have received a copy of the GNU General Public License
18
along with PulseAudio; if not, write to the Free Software Foundation,
19
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
22
<!-- $Id: xmltoman.xsl 2023 2007-11-05 15:10:13Z lennart $ -->
24
<xsl:output method="xml" version="1.0" encoding="iso-8859-15" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" indent="yes"/>
26
<xsl:template match="/manpage">
31
<title><xsl:value-of select="@name"/>(<xsl:value-of select="@section"/>)</title>
32
<style type="text/css">
33
body { color: black; background-color: white; }
34
a:link, a:visited { color: #900000; }
35
h1 { text-transform:uppercase; font-size: 18pt; }
36
p { margin-left:1cm; margin-right:1cm; }
37
.cmd { font-family:monospace; }
38
.file { font-family:monospace; }
39
.arg { text-transform:uppercase; font-family:monospace; font-style: italic; }
40
.opt { font-family:monospace; font-weight: bold; }
41
.manref { font-family:monospace; }
42
.option .optdesc { margin-left:2cm; }
47
<p><xsl:value-of select="@name"/>
48
<xsl:if test="string-length(@desc) > 0"> - <xsl:value-of select="@desc"/></xsl:if>
50
<xsl:apply-templates />
55
<xsl:template match="p">
57
<xsl:apply-templates/>
61
<xsl:template match="cmd">
63
<xsl:apply-templates/>
67
<xsl:template match="arg">
68
<span class="arg"><xsl:apply-templates/></span>
71
<xsl:template match="opt">
72
<span class="opt"><xsl:apply-templates/></span>
75
<xsl:template match="file">
76
<span class="file"><xsl:apply-templates/></span>
79
<xsl:template match="optdesc">
81
<xsl:apply-templates/>
85
<xsl:template match="synopsis">
87
<xsl:apply-templates/>
90
<xsl:template match="seealso">
92
<xsl:apply-templates/>
95
<xsl:template match="description">
97
<xsl:apply-templates/>
100
<xsl:template match="options">
102
<xsl:apply-templates/>
105
<xsl:template match="section">
106
<h1><xsl:value-of select="@name"/></h1>
107
<xsl:apply-templates/>
110
<xsl:template match="option">
111
<div class="option"><xsl:apply-templates/></div>
114
<xsl:template match="manref">
116
<xsl:when test="string-length(@href) > 0">
117
<a class="manref"><xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute><xsl:value-of select="@name"/>(<xsl:value-of select="@section"/>)</a>
120
<span class="manref"><xsl:value-of select="@name"/>(<xsl:value-of select="@section"/>)</span>
125
<xsl:template match="url">
126
<a class="url"><xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute><xsl:value-of select="@href"/></a>