1 <?xml version="1.0" encoding="iso-8859-1"?>
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 ifplugd.
7 ifplugd 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 ifplugd 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 ifplugd; if not, write to the Free Software Foundation,
19 Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
22 <xsl:template match="/manpage">
23 <xsl:text disable-output-escaping="yes">
24 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
30 <xsl:value-of select="@name"/>(<xsl:value-of select="@section"/>)
32 <link rel="stylesheet" type="text/css" href="xmltoman.css"/>
36 <p><xsl:value-of select="@name"/>
37 <xsl:if test="string-length(@desc) > 0">
38 - <xsl:value-of select="@desc"/>
41 <xsl:apply-templates />
46 <xsl:template match="p">
48 <xsl:apply-templates/>
52 <xsl:template match="cmd">
54 <xsl:apply-templates/>
58 <xsl:template match="arg">
59 <span class="arg"><xsl:apply-templates/></span>
62 <xsl:template match="opt">
63 <span class="opt"><xsl:apply-templates/></span>
66 <xsl:template match="file">
67 <span class="file"><xsl:apply-templates/></span>
70 <xsl:template match="optdesc">
72 <xsl:apply-templates/>
76 <xsl:template match="synopsis">
78 <xsl:apply-templates/>
81 <xsl:template match="seealso">
83 <xsl:apply-templates/>
86 <xsl:template match="description">
88 <xsl:apply-templates/>
91 <xsl:template match="options">
93 <xsl:apply-templates/>
96 <xsl:template match="section">
97 <h1><xsl:value-of select="@name"/></h1>
98 <xsl:apply-templates/>
101 <xsl:template match="option">
102 <div class="option"><xsl:apply-templates/></div>
105 <xsl:template match="manref">
107 <xsl:when test="string-length(@href) > 0">
108 <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>
111 <span class="manref"><xsl:value-of select="@name"/>(<xsl:value-of select="@section"/>)</span>
116 <xsl:template match="url">
117 <a class="url"><xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute><xsl:value-of select="@href"/></a>