blob: f1e29aa88a9ff73809cd2928f6b769db3c11550f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
|
<?xml version='1.0' encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output encoding="iso-8859-1" method="html" indent="yes"/>
<xsl:preserve-space elements="pre"/>
<xsl:template match="/guide">
<html>
<head>
<title>Gentoo Linux</title>
<link title="new" rel="stylesheet" href="main-new.css" type="text/css"></link>
</head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff">
<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">
<tr>
<td height="168" width="30%" bgcolor="#45347b">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr><td class="logobg" valign="bottom" align="center" height="120"><img src="gtop-new.jpg"/></td></tr>
<tr><td class="logobg" valign="bottom" align="center" height="48"><img src="gbot-new.gif"/></td></tr>
</table>
</td>
<td class="menu" valign="bottom" height="168" width="70%" bgcolor="#000000">
<!--Netscape 4.7 table hack-->
main menu ::<br/>
  <a class="oldlink" href="index.html">About Gentoo Linux</a><br/>
  <a class="oldlink" href="index-download.html">Download/Install</a><br/> <br/>
docs ::<br/>
  <a class="highlight" href="fixme"><xsl:value-of select="title"/></a>
</td>
</tr>
<tr>
<td colspan="2" valign="top" height="96" align="right" width="30%" bgcolor="#ffffff">
<!--content begin-->
<!--Netscape 4.7 hack table start-->
<table border="0" cellspacing="5" cellpadding="0" height="100%" width="100%">
<tr><td class="content" valign="top" align="left">
<table class="infotab" align="right" cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="infohead" align="center" bgcolor="#7a5ada">About this Document</td>
</tr>
<tr valign="top" bgcolor="#ddddff">
<td class="infotext">
<br/>
<p class="infosub">Authors:</p>
<p class="infolist">
<xsl:apply-templates select="author"/>
</p>
<br/>
<p class="infosub">Table of Contents:</p>
<ol>
<xsl:for-each select="chapter">
<xsl:variable name="chapid">doc_chap<xsl:number/></xsl:variable>
<li><a href="#{$chapid}"><xsl:value-of select="title"/></a></li>
</xsl:for-each>
</ol>
<br/>
<p class="infosub">Doc Revision <xsl:value-of select="version"/>, <xsl:value-of select="date"/></p>
</td>
</tr>
</table>
<p class="dochead"><xsl:value-of select="title"/></p>
<xsl:apply-templates select="chapter"/>
<!--content end-->
</td></tr></table>
<!--Netscape 4.7 hack end-->
</td>
</tr>
<tr>
<td align="right" class="infohead" width="100%" colspan="2" bgcolor="#7a5ada">
Copyright 2001 Gentoo
Technologies, Inc. Questions, Comments, Corrections? Email <a class="highlight"
href="mailto:gentoo-dev@gentoo.org">gentoo-dev@gentoo.org</a>.
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="mail">
<a href="mailto:{@link}"><xsl:value-of select="."/></a>
</xsl:template>
<xsl:template match="author">
<xsl:apply-templates />
<xsl:if test="@title">, <i><xsl:value-of select="@title"/></i>
</xsl:if>
<br/>
</xsl:template>
<xsl:template match="chapter">
<xsl:variable name="chapid">doc_chap<xsl:number/></xsl:variable>
<a name="#{$chapid}"><p class="chaphead"><span class="chapnum"><xsl:number/>.</span> <xsl:value-of select="title"/></p></a>
<xsl:apply-templates select="section"/>
</xsl:template>
<xsl:template match="section">
<xsl:variable name="sectid"><xsl:value-of select="$chapid"/>_sect<xsl:number/></xsl:variable>
<a name="#{$sectid}"><p class="secthead"><xsl:value-of select="title"/></p></a>
<xsl:apply-templates select="body"/>
</xsl:template>
<xsl:template match="figure">
<table border="0"><tr><td>
<xsl:variable name="fignum"><xsl:number level="any"/></xsl:variable>
<xsl:variable name="figid">doc_fig<xsl:number/></xsl:variable>
<a name="#{$figid}"/>
<xsl:choose>
<xsl:when test="@short">
<img src="{@link}" alt="Fig. {$fignum}: {@short}"/>
</xsl:when>
<xsl:otherwise>
<img src="{@link}" alt="Fig. {$fignum}"/>
</xsl:otherwise>
</xsl:choose>
</td></tr><tr><td class="tochead">
<xsl:choose>
<xsl:when test="@caption">
Figure <xsl:value-of select="$fignum"/>: <xsl:value-of select="@caption" />
</xsl:when>
<xsl:otherwise>
Figure <xsl:value-of select="$fignum"/>
</xsl:otherwise>
</xsl:choose>
</td></tr></table>
</xsl:template>
<xsl:template match="note">
<table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="#bbffbb">
<p class="note"><b>Note: </b>
<xsl:apply-templates />
</p>
</td></tr></table>
</xsl:template>
<xsl:template match="impo">
<table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="#ffffbb">
<p class="impo"><b>Important: </b>
<xsl:apply-templates />
</p>
</td></tr></table>
</xsl:template>
<xsl:template match="warn">
<table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td bgcolor="#ffbbbb">
<p class="warn"><b>Warning: </b>
<xsl:apply-templates />
</p>
</td></tr></table>
</xsl:template>
<xsl:template match="codenote">
<span class="comment">// <xsl:value-of select="." /></span>
</xsl:template>
<xsl:template match="comment">
<span class="comment"><xsl:apply-templates /></span>
</xsl:template>
<xsl:template match="i">
<span class="input"><xsl:apply-templates /></span>
</xsl:template>
<xsl:template match="body">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="c">
<span class="code"><xsl:apply-templates /></span>
</xsl:template>
<xsl:template match="pre">
<xsl:variable name="prenum"><xsl:number level="any" /></xsl:variable>
<xsl:variable name="preid">doc_pre<xsl:number level="any" /></xsl:variable>
<a name="#{$preid}"/>
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr><td class="infohead" bgcolor="#7a5ada">
<p class="caption">
<xsl:choose>
<xsl:when test="@caption">
Code listing <xsl:value-of select="$prenum"/>: <xsl:value-of select="@caption" />
</xsl:when>
<xsl:otherwise>
Code listing <xsl:value-of select="$prenum"/>
</xsl:otherwise>
</xsl:choose>
</p>
</td></tr>
<tr><td bgcolor="#ddddff">
<pre>
<xsl:apply-templates />
</pre>
</td></tr></table>
</xsl:template>
<!-- path is used for specifying files and URLs; if you are linking
part of a sentence rather than a path, then don't use this, use span instead-->
<xsl:template match="path">
<span class="path"><xsl:value-of select="."/></span>
</xsl:template>
<xsl:template match="uri">
<xsl:choose>
<xsl:when test="@link">
<a href="{@link}"><xsl:value-of select="."/></a>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="loc" select="."/>
<a href="{$loc}"><xsl:value-of select="."/></a>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="p">
<p><xsl:apply-templates /></p>
</xsl:template>
<xsl:template match="e">
<span class="emphasis"><xsl:apply-templates /></span>
</xsl:template>
<xsl:template match="mail">
<a href="mailto:{@link}"><xsl:value-of select="."/></a>
</xsl:template>
<xsl:template match="table">
<table><xsl:apply-templates /></table>
</xsl:template>
<xsl:template match="tr">
<tr><xsl:apply-templates /></tr>
</xsl:template>
<xsl:template match="ti">
<td class="tableinfo"><xsl:apply-templates /></td>
</xsl:template>
<xsl:template match="th">
<td class="tochead"><b><xsl:apply-templates /></b></td>
</xsl:template>
<xsl:template match="ul">
<ul><xsl:apply-templates /></ul>
</xsl:template>
<xsl:template match="ol">
<ol><xsl:apply-templates /></ol>
</xsl:template>
<xsl:template match="li">
<li><xsl:apply-templates /></li>
</xsl:template>
</xsl:stylesheet>
|