summaryrefslogtreecommitdiff
blob: a2644e0aa0118ba3ac2283c3c6a4364b3647475b (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
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
<?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>
    <link title="new" rel="stylesheet" href="/main-new.css" type="text/css"></link>
<title>Gentoo Linux 
	<xsl:choose>
	<xsl:when test="/guide/@type='project'">
		Projects
	</xsl:when>
	<xsl:otherwise>
		Documentation
	</xsl:otherwise>
	</xsl:choose>
-- 
	<xsl:choose>
		<xsl:when test="subtitle">
			<xsl:value-of select="title"/>: <xsl:value-of select="subtitle"/>
		</xsl:when>
		<xsl:otherwise>
			<xsl:value-of select="title"/>
		</xsl:otherwise>
	</xsl:choose>
</title>
</head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff">
	<!--<table border="0" width="100%" cellspacing="0" cellpadding="0">-->
	<table border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td valign="top" height="168" width="30%" bgcolor="#45347b">
				<table cellspacing="0" cellpadding="0" border="0" width="100%">
					<tr><td class="logobg" valign="top" align="center" height="120"><a href="/index.html"><img border="0" src="/images/gtop-new.jpg"/></a></td></tr>
					<tr><td class="logobg" valign="top" align="center" height="48"><a href="/index.html"><img border="0" src="/images/gbot-new.gif"/></a></td></tr>
				</table>
			</td>
			<td valign="bottom" height="168" width="70%" bgcolor="#000000">
				<!--Netscape 4.7 table hack-->
				<table class="menu" border="0" cellpadding="10" cellspacing="0" width="100%">
				<tr>
					<td valign="top">
						<xsl:variable name="mylink"><xsl:value-of select="/guide/@link"/></xsl:variable>
						main menu ::<br/>
						&#160;<a class="oldlink" href="/index.html">About Gentoo Linux</a><br/>
						&#160;<a class="oldlink" href="/index-download.html">Download/Install</a><br/> 
						&#160;<a class="oldlink" href="http://cvs.gentoo.org/wiki">Dev Wiki</a><br/> 
						&#160;<a class="oldlink" href="/index-changelog.html">CVS Changelog</a><br/> 
						&#160;<a class="oldlink" href="/index-projects.html">Projects</a><br/> 
						<br/>
					</td>
					<td valign="top">
						toc ::<br/>	
						<xsl:for-each select="chapter">
						<xsl:variable name="chapid">doc_chap<xsl:number/></xsl:variable>
						&#160;<a class="oldlink" href="#{$chapid}"><xsl:value-of select="title"/></a><br/>
						</xsl:for-each>		
					</td>
					<td valign="top">
						summary ::<br/>
							<font color="#00ff00"><xsl:apply-templates select="abstract"/></font>
					</td>
				</tr>
				<tr>
					<td colspan="3">
						<xsl:choose>
						<xsl:when test="/guide/@type='project'">
							projects
						</xsl:when>
						<xsl:otherwise>
							docs 
						</xsl:otherwise>
						</xsl:choose>
						::
						<a class="highlight" href="{$mylink}">
						<xsl:choose>
						<xsl:when test="/guide/subtitle">
							<xsl:value-of select="/guide/title"/>: <xsl:value-of select="/guide/subtitle"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="/guide/title"/>
						</xsl:otherwise>
						</xsl:choose>
						</a>
					</td>
				</tr>
				</table>
			</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%">-->
<table border="0" cellspacing="5" cellpadding="0" width="100%">
<tr><td class="content" valign="top" align="left">
			<br/>
			<p class="dochead">
			<xsl:choose>
				<xsl:when test="/guide/subtitle">
					<xsl:value-of select="/guide/title"/>: <xsl:value-of select="/guide/subtitle"/>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="/guide/title"/>
				</xsl:otherwise>
			</xsl:choose>
			</p>
		<p>
			<xsl:apply-templates select="author"/>

		</p>
<xsl:apply-templates select="chapter"/> 
<br/>
<br/>
<!--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="/mainpage">
<html>
<head>
    <link title="new" rel="stylesheet" href="/main-new.css" type="text/css"></link>
	<title>Gentoo Linux -- <xsl:value-of select="title"/></title>
</head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff">
	<!--<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">-->
	<table border="0" width="100%" cellspacing="0" cellpadding="0">
		<tr>
			<td rowspan="2" valign="top" height="168" width="30%" bgcolor="#45347b">
				<table cellspacing="0" cellpadding="0" border="0" width="100%">
					<tr><td class="logobg" valign="top" align="center" height="120"><a href="/index.html"><img border="0" src="/images/gtop-new.jpg"/></a></td></tr>
					<tr><td class="logobg" valign="top" align="center" height="48"><a href="/index.html"><img border="0" src="/images/gbot-new.gif"/></a></td></tr>
				</table>
			</td>
			
			<td valign="middle" align="center" width="70%" bgcolor="#000000">
				<table border="0" cellpadding="0" cellspacing="0">
				<tr>
					<td align="center">
						<p class="infotext"><font color="#00ff00"><br/><a href="http://www.qksrv.net/click-477620-5032686" target="_top" ><img src="http://www.qksrv.net/image-477620-5032686" width="468" height="60" alt="DDR Memory at Crucial.com" border="0"/></a><br/><b>inventor</b> and <b>cvs.gentoo.org</b> use Crucial RAM; click above, buy some... and support <i>us</i>!</font></p>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td valign="bottom" align="left" width="70%" bgcolor="#000000">
			<p class="menu">
				<xsl:choose>
					<xsl:when test="/mainpage/@id='about'">
						<a class="highlight" href="/index.html"> About Gentoo Linux</a> |
					</xsl:when>
					<xsl:otherwise>
						<a class="menulink" href="/index.html"> About Gentoo Linux</a> |
					</xsl:otherwise>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="/mainpage/@id='download'">
						<a class="highlight" href="/index-download.html">Download/Install</a> | <a class="menulink" href="http://cvs.gentoo.org/wiki">Dev Wiki</a> |
					</xsl:when>
					<xsl:otherwise>
						<a class="menulink" href="/index-download.html">Download/Install</a> | <a class="menulink" href="http://cvs.gentoo.org/wiki">Dev Wiki</a> |
					</xsl:otherwise>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="/mainpage/@id='changelog'">
						<a class="highlight" href="/index-changelog.html">CVS Changelog</a> |
					</xsl:when>
					<xsl:otherwise>
						<a class="menulink" href="/index-changelog.html">CVS Changelog</a> |
					</xsl:otherwise>
				</xsl:choose>
				<xsl:choose>
					<xsl:when test="/mainpage/@id='projects'">
						<a class="highlight" href="/index-projects.html">Projects</a>
					</xsl:when>
					<xsl:otherwise>
						<a class="menulink" href="/index-projects.html">Projects</a>
					</xsl:otherwise>
				</xsl:choose>
				</p>
			</td>
		</tr>
		<tr>
			<td valign="top" height="96" align="right" width="30%" bgcolor="#dddaec">
				<!--<table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0">-->
				<table width="100%" cellspacing="0" cellpadding="0" border="0">
					<tr><td height="1%" valign="top" align="right">
						<table border="0" cellpadding="0" cellspacing="0">
						<tr><td align="center" valign="middle">
							<p bgcolor="#eeebfd" class="altmenu">Download Mirrors:<br/>
							<a class="altlink" href="http://www.ibiblio.org/gentoo">ibiblio.org (USA)</a><br/>
							<a class="altlink" href="http://download.sourceforge.net/pub/mirrors/metalab/Linux/distributions/gentoo/">SourceForge (USA)</a></p>
						</td><td>
							<img src="/images/gridtest.gif"/>
						</td></tr>
						</table>
					</td></tr>
					<tr><td height="99%" valign="top" align="center">
						<!--info goes here-->			
						<table width="90%" cellspacing="0" cellpadding="5" border="0">
						<!--<table width="90%" height="100%" cellspacing="0" cellpadding="5" border="0">-->
						<tr><td valign="top">
						<p class="altmenu">User Docs:<br/>
						<a class="altlink" href="/doc/faq.html">FAQ</a><br/>
						<a class="altlink" href="/doc/desktop.html">Desktop Guide</a><br/>
						<a class="altlink" href="/doc/portage-user.html">Portage User Guide</a><br/>
						<a class="altlink" href="/doc/build.html">Build CD Install Guide</a><br/>
						<a class="altlink" href="/index-download.html">Binary CD Install Guide</a><br/>
						<a class="altlink" href="/doc/nvidia_tsg.html">nvidia Troubleshooting Guide</a><br/>
						<br/>
						
						Developer Docs:<br/>
						<a class="altlink" href="/doc/gentoo-howto.html">Development HOWTO</a><br/>
						<a class="altlink" href="/doc/xml-guide.html">XML Documentation Guide</a><br/>
						<br/>
	
						Mailing Lists:<br/>
						<font color="#ff0000">New!</font> <a class="altlink" href="http://cvs.gentoo.org/mailman/listinfo/gentoo-ebuild">gentoo-ebuild</a><br/>
						<a class="altlink" href="http://cvs.gentoo.org/mailman/listinfo/gentoo-dev">gentoo-dev</a><br/>
						<a class="altlink" href="http://cvs.gentoo.org/mailman/listinfo/gentoo-announce">gentoo-announce</a><br/>
						<a class="altlink" href="http://cvs.gentoo.org/mailman/listinfo/gentoo-cvs">gentoo-cvs</a><br/>
						<br/>
						Other Resources:<br/>
						<a class="altlink" href="http://cvs.gentoo.org/cgi-bin/cvsweb.cgi">cvsweb</a> (browse our repository)<br/>
						IRC: #gentoo on <a class="altlink" href="http://www.openprojects.net/">OPN</a><br/>
						</p></td></tr></table>
					</td></tr>
				</table>
			</td>
			<td 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%">-->
<table border="0" cellspacing="5" cellpadding="0" width="100%">
<tr><td class="content" valign="top" align="left">
	<xsl:if test="/mainpage/standout">
	<table class="infotab" width="50%" align="right" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td class="infohead" align="center" bgcolor="#7a5ada"><xsl:value-of select="/mainpage/standout/title"/></td>
		</tr>
		<tr valign="top" bgcolor="#ddddff">
			<td class="infotext">
				<xsl:apply-templates select="/mainpage/standout/body"/>
			</td>
		</tr>
	</table>
	</xsl:if>
		<img src="/images/gentoo-new.gif"/><br/>
		<p class="subhead"><xsl:value-of select="/mainpage/title"/></p>
<xsl:apply-templates select="chapter"/> 
<br/>
<br/>
<!--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>
	<xsl:choose>
	<xsl:when test="title">
		<p class="chaphead"><font class="chapnum"><a name="{$chapid}"><xsl:number/>.</a></font> <xsl:value-of select="title"/></p>
	</xsl:when>
	<xsl:otherwise>
		<xsl:if test="/guide">
			<p class="chaphead"><font class="chapnum"><a name="{$chapid}"><xsl:number/>.</a></font></p> 
		</xsl:if>
	</xsl:otherwise>
	</xsl:choose>
	<xsl:apply-templates select="section"/>
</xsl:template>

<xsl:template match="section">
	<xsl:if test="title">
		<xsl:variable name="sectid"><xsl:value-of select="$chapid"/>_sect<xsl:number/></xsl:variable>
		<p class="secthead"><a name="{$sectid}"><xsl:value-of select="title"/>&#160;</a></p>
	</xsl:if>
	<xsl:apply-templates select="body"/>
</xsl:template>

<xsl:template match="figure">
	<xsl:variable name="fignum"><xsl:number level="any"/></xsl:variable>
	<xsl:variable name="figid">doc_fig<xsl:number/></xsl:variable>
	<br/>
	<a name="{$figid}"/>
	<table cellspacing="0" cellpadding="0" border="0">
	<tr><td class="infohead" bgcolor="#7a5ada">
	<p class="caption">
		<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>
	</p>
	</td></tr>
	<tr><td align="center" bgcolor="#ddddff">
	<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></table>
	<br/>
</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">
	<font class="comment">// <xsl:value-of select="." /></font>
</xsl:template>

<xsl:template match="comment">
	<font class="comment"><xsl:apply-templates /></font>
</xsl:template>

<xsl:template match="i">
	<font class="input"><xsl:apply-templates /></font>
</xsl:template>

<xsl:template match="b">
	<b><xsl:apply-templates /></b>
</xsl:template>

<xsl:template match="brite">
	<font color="#ff0000"><b><xsl:apply-templates /></b></font>
</xsl:template>

<xsl:template match="body">
	<xsl:apply-templates />
</xsl:template>

<xsl:template match="c">
	<font class="code"><xsl:apply-templates /></font> 
</xsl:template>

<xsl:template match="box">
	<p class="infotext"><xsl:apply-templates /></p>
</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 class="ntable" 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>

<xsl:template match="path">
	<font class="path"><xsl:value-of select="."/></font>
</xsl:template>

<xsl:template match="uri">
	<!-- expand templates to handle things like <uri link="http://bar"><c>foo</c></uri> -->
	<xsl:choose>
		<xsl:when test="@link">
			<a href="{@link}"><xsl:apply-templates /></a>
		</xsl:when>
		<xsl:otherwise>
			<xsl:variable name="loc" select="."/>
			<a href="{$loc}"><xsl:apply-templates /></a>
		</xsl:otherwise>
	</xsl:choose>
</xsl:template>

<xsl:template match="p">
	<p><xsl:apply-templates /></p>
</xsl:template>

<xsl:template match="e">
	<font class="emphasis"><xsl:apply-templates /></font>
</xsl:template>

<xsl:template match="mail">
	<a href="mailto:{@link}"><xsl:value-of select="."/></a>
</xsl:template>

<xsl:template match="table">
	<table class="ntable"><xsl:apply-templates /></table>
</xsl:template>

<xsl:template match="tr">
	<tr><xsl:apply-templates /></tr>
</xsl:template>

<xsl:template match="ti">
	<td bgcolor="#ddddff" class="tableinfo"><xsl:apply-templates /></td>
</xsl:template>

<xsl:template match="th">
	<td bgcolor="#7a5ada" class="infohead"><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>