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 <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"/>
24 <xsl:template match=
"/manpage">
29 <title><xsl:value-of select=
"@name"/>(
<xsl:value-of select=
"@section"/>)
</title>
30 <style type=
"text/css">
31 body { color: black; background-color: white; }
32 a:link, a:visited { color: #
900000; }
33 h1 { text-transform:uppercase; font-size:
18pt; }
34 p { margin-left:
1cm; margin-right:
1cm; }
35 .cmd { font-family:monospace; }
36 .file { font-family:monospace; }
37 .arg { text-transform:uppercase; font-family:monospace; font-style: italic; }
38 .opt { font-family:monospace; font-weight: bold; }
39 .manref { font-family:monospace; }
40 .option .optdesc { margin-left:
2cm; }
45 <p><xsl:value-of select=
"@name"/>
46 <xsl:if test=
"string-length(@desc) > 0"> -
<xsl:value-of select=
"@desc"/></xsl:if>
48 <xsl:apply-templates />
53 <xsl:template match=
"p">
55 <xsl:apply-templates/>
59 <xsl:template match=
"cmd">
61 <xsl:apply-templates/>
65 <xsl:template match=
"arg">
66 <span class=
"arg"><xsl:apply-templates/></span>
69 <xsl:template match=
"opt">
70 <span class=
"opt"><xsl:apply-templates/></span>
73 <xsl:template match=
"file">
74 <span class=
"file"><xsl:apply-templates/></span>
77 <xsl:template match=
"optdesc">
79 <xsl:apply-templates/>
83 <xsl:template match=
"synopsis">
85 <xsl:apply-templates/>
88 <xsl:template match=
"seealso">
90 <xsl:apply-templates/>
93 <xsl:template match=
"description">
95 <xsl:apply-templates/>
98 <xsl:template match=
"options">
100 <xsl:apply-templates/>
103 <xsl:template match=
"section">
104 <h1><xsl:value-of select=
"@name"/></h1>
105 <xsl:apply-templates/>
108 <xsl:template match=
"option">
109 <div class=
"option"><xsl:apply-templates/></div>
112 <xsl:template match=
"manref">
114 <xsl:when test=
"string-length(@href) > 0">
115 <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>
118 <span class=
"manref"><xsl:value-of select=
"@name"/>(
<xsl:value-of select=
"@section"/>)
</span>
123 <xsl:template match=
"url">
124 <a class=
"url"><xsl:attribute name=
"href"><xsl:value-of select=
"@href"/></xsl:attribute><xsl:value-of select=
"@href"/></a>