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"> 3 4<!-- 5 This file is part of PulseAudio. 6 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. 11 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 15 for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with PulseAudio; if not, see <http://www.gnu.org/licenses/>. 19--> 20 21<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"/> 22 23<xsl:template match="/manpage"> 24 25 <html> 26 27 <head> 28 <title><xsl:value-of select="@name"/>(<xsl:value-of select="@section"/>)</title> 29 <style type="text/css"> 30 body { color: black; background-color: white; } 31 a:link, a:visited { color: #900000; } 32 h1 { text-transform:uppercase; font-size: 18pt; } 33 p { margin-left:1cm; margin-right:1cm; } 34 .cmd { font-family:monospace; } 35 .file { font-family:monospace; } 36 .arg { text-transform:uppercase; font-family:monospace; font-style: italic; } 37 .opt { font-family:monospace; font-weight: bold; } 38 .manref { font-family:monospace; } 39 .option .optdesc { margin-left:2cm; } 40 </style> 41 </head> 42 <body> 43 <h1>Name</h1> 44 <p><xsl:value-of select="@name"/> 45 <xsl:if test="string-length(@desc) > 0"> - <xsl:value-of select="@desc"/></xsl:if> 46 </p> 47 <xsl:apply-templates /> 48 </body> 49 </html> 50</xsl:template> 51 52<xsl:template match="p"> 53 <p> 54 <xsl:apply-templates/> 55 </p> 56</xsl:template> 57 58<xsl:template match="cmd"> 59 <p class="cmd"> 60 <xsl:apply-templates/> 61 </p> 62</xsl:template> 63 64<xsl:template match="arg"> 65 <span class="arg"><xsl:apply-templates/></span> 66</xsl:template> 67 68<xsl:template match="opt"> 69 <span class="opt"><xsl:apply-templates/></span> 70</xsl:template> 71 72<xsl:template match="file"> 73 <span class="file"><xsl:apply-templates/></span> 74</xsl:template> 75 76<xsl:template match="optdesc"> 77 <div class="optdesc"> 78 <xsl:apply-templates/> 79 </div> 80</xsl:template> 81 82<xsl:template match="synopsis"> 83 <h1>Synopsis</h1> 84 <xsl:apply-templates/> 85</xsl:template> 86 87<xsl:template match="seealso"> 88 <h1>Synopsis</h1> 89 <xsl:apply-templates/> 90</xsl:template> 91 92<xsl:template match="description"> 93 <h1>Description</h1> 94 <xsl:apply-templates/> 95</xsl:template> 96 97<xsl:template match="options"> 98 <h1>Options</h1> 99 <xsl:apply-templates/> 100</xsl:template> 101 102<xsl:template match="section"> 103 <h1><xsl:value-of select="@name"/></h1> 104 <xsl:apply-templates/> 105</xsl:template> 106 107<xsl:template match="option"> 108 <div class="option"><xsl:apply-templates/></div> 109</xsl:template> 110 111<xsl:template match="manref"> 112 <xsl:choose> 113 <xsl:when test="string-length(@href) > 0"> 114 <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> 115 </xsl:when> 116 <xsl:otherwise> 117 <span class="manref"><xsl:value-of select="@name"/>(<xsl:value-of select="@section"/>)</span> 118 </xsl:otherwise> 119 </xsl:choose> 120</xsl:template> 121 122<xsl:template match="url"> 123 <a class="url"><xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute><xsl:value-of select="@href"/></a> 124</xsl:template> 125 126</xsl:stylesheet> 127