1 <?xml version='1.0'?> <!--*-nxml-*-->
4 This file is part of systemd.
6 Copyright 2011 Lennart Poettering
8 systemd is free software; you can redistribute it and/or modify it
9 under the terms of the GNU Lesser General Public License as published by
10 the Free Software Foundation; either version 2.1 of the License, or
11 (at your option) any later version.
13 systemd is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
18 You should have received a copy of the GNU Lesser General Public License
19 along with systemd; If not, see <http://www.gnu.org/licenses/>.
22 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
24 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
26 <!-- translate man page references to links to html pages -->
27 <xsl:template match="citerefentry">
29 <xsl:attribute name="href">
30 <xsl:value-of select="refentrytitle"/><xsl:text>.html</xsl:text>
32 <xsl:call-template name="inline.charseq"/>
36 <xsl:template match="refsect1/title|refsect1/info/title">
37 <!-- the ID is output in the block.object call for refsect1 -->
39 <xsl:attribute name="id">
40 <xsl:call-template name="inline.charseq"/>
42 <xsl:apply-templates/>
44 <xsl:attribute name="class">
45 <xsl:text>headerlink</xsl:text>
47 <xsl:attribute name="title">
48 <xsl:text>Permalink to this headline</xsl:text>
50 <xsl:attribute name="href">
51 <xsl:text>#</xsl:text>
52 <xsl:call-template name="inline.charseq"/>
54 <xsl:text>¶</xsl:text>
59 <xsl:template match="refsect2/title|refsect2/info/title">
61 <xsl:attribute name="id">
62 <xsl:call-template name="inline.charseq"/>
64 <xsl:apply-templates/>
66 <xsl:attribute name="class">
67 <xsl:text>headerlink</xsl:text>
69 <xsl:attribute name="title">
70 <xsl:text>Permalink to this headline</xsl:text>
72 <xsl:attribute name="href">
73 <xsl:text>#</xsl:text>
74 <xsl:call-template name="inline.charseq"/>
76 <xsl:text>¶</xsl:text>
81 <xsl:template match="varlistentry">
83 <xsl:attribute name="id">
84 <xsl:call-template name="inline.charseq">
85 <xsl:with-param name="content">
86 <xsl:copy-of select="term[position()=1]" />
90 <xsl:apply-templates select="term"/>
92 <xsl:attribute name="class">
93 <xsl:text>headerlink</xsl:text>
95 <xsl:attribute name="title">
96 <xsl:text>Permalink to this term</xsl:text>
98 <xsl:attribute name="href">
99 <!-- <xsl:call-template name="href.target.uri" /> -->
100 <xsl:text>#</xsl:text>
101 <xsl:call-template name="inline.charseq">
102 <xsl:with-param name="content">
103 <xsl:copy-of select="term[position()=1]" />
107 <xsl:text>¶</xsl:text>
111 <xsl:apply-templates select="listitem"/>
116 <!-- add Index link at top of page -->
117 <xsl:template name="user.header.content">
122 padding: 0 4px 0 4px;
123 text-decoration: none;
128 background-color: #c60f0f;
132 h1:hover > a.headerlink, h2:hover > a.headerlink, h3:hover > a.headerlink, dt:hover > a.headerlink {
138 <xsl:attribute name="href">
139 <xsl:text>index.html</xsl:text>
141 <xsl:text>Index </xsl:text>
144 <xsl:attribute name="href">
145 <xsl:text>systemd.directives.html</xsl:text>
147 <xsl:text>Directives </xsl:text>
150 <xsl:attribute name="href">
151 <xsl:text>../python-systemd/index.html</xsl:text>
153 <xsl:text>Python </xsl:text>
156 <xsl:attribute name="href">
157 <xsl:text>../libudev/index.html</xsl:text>
159 <xsl:text>libudev </xsl:text>
162 <xsl:attribute name="href">
163 <xsl:text>../libudev/index.html</xsl:text>
165 <xsl:text>gudev </xsl:text>
168 <span style="float:right">
169 <xsl:text>systemd </xsl:text>
170 <xsl:value-of select="$systemd.version"/>
175 <xsl:template match="literal">
176 <xsl:text>"</xsl:text>
177 <xsl:call-template name="inline.monoseq"/>
178 <xsl:text>"</xsl:text>
181 <!-- Switch things to UTF-8, ISO-8859-1 is soo yesteryear -->
182 <xsl:output method="html" encoding="UTF-8" indent="no"/>