/[gentoo]/xml/htdocs/xsl/guide.xsl
Gentoo

Contents of /xml/htdocs/xsl/guide.xsl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.37 - (show annotations) (download) (as text)
Mon Feb 24 03:46:30 2003 UTC (12 years, 2 months ago) by rajiv
Branch: MAIN
Changes since 1.36: +2 -2 lines
File MIME type: application/xml
updated more image paths to new ibiblio location.

1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3 <xsl:output encoding="UTF-8" method="html" indent="yes" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
4 <xsl:preserve-space elements="pre"/>
5 <xsl:template match="img">
6 <img src="{@src}"/>
7 </xsl:template>
8 <xsl:template match="/guide">
9 <html>
10 <head>
11 <link title="new" rel="stylesheet" href="/css/main.css" type="text/css"/>
12 <link REL="shortcut icon" HREF="http://www.gentoo.org/favicon.ico" TYPE="image/x-icon"/>
13 <title>Gentoo Linux
14 <xsl:choose><xsl:when test="/guide/@type='project'">
15 Projects
16 </xsl:when><xsl:when test="/guide/@type='newsletter'">
17 Newsletter
18 </xsl:when><xsl:otherwise>
19 Documentation
20 </xsl:otherwise></xsl:choose>
21 --
22 <xsl:choose><xsl:when test="subtitle"><xsl:if test="/guide/@type!='newsletter'"><xsl:value-of select="title"/>:</xsl:if> <xsl:value-of select="subtitle"/></xsl:when><xsl:otherwise><xsl:value-of select="title"/></xsl:otherwise></xsl:choose></title>
23 </head>
24 <body style="margin-left:0px;margin-top:0px;" bgcolor="#ffffff">
25 <!--<table border="0" width="100%" cellspacing="0" cellpadding="0">-->
26 <table width="100%" border="0" cellspacing="0" cellpadding="0">
27 <tr>
28 <td valign="top" height="125" bgcolor="#45347b">
29 <table cellspacing="0" cellpadding="0" border="0" width="193">
30 <tr>
31 <td class="logobg" valign="top" align="center" height="88">
32 <a href="/index.xml">
33 <img border="0" src="http://www.ibiblio.org/web-gentoo/images/gtop-s.jpg" alt="Gentoo Logo"/>
34 </a>
35 </td>
36 </tr>
37 <tr>
38 <td class="logobg" valign="top" align="center" height="36">
39 <a href="/index.xml">
40 <img border="0" src="http://www.ibiblio.org/web-gentoo/images/gbot-s.gif" alt="Gentoo Logo Side"/>
41 </a>
42 </td>
43 </tr>
44 </table>
45
46
47 </td>
48 </tr>
49 <tr>
50 <td valign="top" align="right" colspan="1" bgcolor="#ffffff">
51 <!--content begin-->
52 <!--Netscape 4.7 hack table start-->
53 <!--<table border="0" cellspacing="5" cellpadding="0" height="100%" width="100%">-->
54 <table border="0" cellspacing="0" cellpadding="0" width="100%">
55 <tr>
56 <td width="99%" class="content" valign="top" align="left">
57 <br/>
58 <p class="dochead">
59 <xsl:choose>
60 <xsl:when test="/guide/subtitle"><xsl:value-of select="/guide/title"/>: <xsl:value-of select="/guide/subtitle"/></xsl:when>
61 <xsl:otherwise>
62 <xsl:value-of select="/guide/title"/>
63 </xsl:otherwise>
64 </xsl:choose>
65 </p>
66 <!-- <p>
67 <xsl:apply-templates select="author"/>
68
69 </p> -->
70 <form name="contents" action="http://www.gentoo.org"><b>Contents</b>:
71 <select name="url" size="1" OnChange="location.href=form.url.options[form.url.selectedIndex].value" style="font-family:Arial,Helvetica, sans-serif; font-size:10"><xsl:for-each select="chapter"><xsl:variable name="chapid">doc_chap<xsl:number/></xsl:variable><option value="#{$chapid}"><xsl:number/>. <xsl:value-of select="title"/></option>
72
73 </xsl:for-each></select></form>
74 <xsl:apply-templates select="chapter"/>
75 <br/>
76 <br/>
77 <!--content end-->
78 </td>
79 <td width="1%" bgcolor="#dddaec" valign="top">
80 <table border="0" cellspacing="5" cellpadding="0">
81 <tr>
82 <td>
83 <img src="http://www.ibiblio.org/web-gentoo/images/line.gif" alt="line"/>
84 </td>
85 </tr>
86 <tr>
87 <td align="center" class="alttext">
88 Updated <xsl:value-of select="/guide/date"/>
89 </td>
90 </tr>
91 <tr>
92 <td>
93 <img src="http://www.ibiblio.org/web-gentoo/images/line.gif" alt="line"/>
94 </td>
95 </tr>
96 <tr>
97 <td class="alttext">
98 <xsl:apply-templates select="/guide/author"/>
99 </td>
100 </tr>
101 <tr>
102 <td>
103 <img src="http://www.ibiblio.org/web-gentoo/images/line.gif" alt="line"/>
104 </td>
105 </tr>
106 <tr>
107 <td class="alttext"><b>Summary:</b>&#160;<xsl:apply-templates select="abstract"/></td>
108 </tr>
109 <tr>
110 <td>
111 <img src="http://www.ibiblio.org/web-gentoo/images/line.gif" alt="line"/>
112 </td>
113 </tr>
114 <tr>
115 <td align="center">
116 <!-- Begin PayPal Logo -->
117 <p class="alttext"><b>Donate</b> to support our development efforts.</p>
118 <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
119 <input type="hidden" name="cmd" value="_xclick"/>
120 <input type="hidden" name="business" value="drobbins@gentoo.org"/>
121 <input type="hidden" name="item_name" value="Gentoo Linux Support"/>
122 <input type="hidden" name="item_number" value="1000"/>
123 <input type="hidden" name="image_url" value="http://www.ibiblio.org/web-gentoo/images/paypal.png"/>
124 <input type="hidden" name="no_shipping" value="1"/>
125 <input type="hidden" name="return" value="http://www.gentoo.org"/>
126 <input type="hidden" name="cancel_return" value="http://www.gentoo.org"/>
127 <input type="image" src="http://images.paypal.com/images/x-click-but21.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"/>
128 </form>
129 </td>
130 </tr>
131 <tr>
132 <td>
133 <img src="http://www.ibiblio.org/web-gentoo/images/line.gif" alt="line"/>
134 </td>
135 </tr>
136 <tr>
137 <td align="center">
138 <a href="http://www.netraverse.com/gentoo.htm" target="_top">
139 <img src="http://www.ibiblio.org/web-gentoo/images/netraverse-gentoo.gif" width="125" height="102" alt="Win4Lin at NeTraverse" border="0"/>
140 </a>
141 <p class="alttext">Win4Lin from <b>NeTraverse</b> lets you run Windows applications under Gentoo Linux at native speeds. <a href="http://www.netraverse.com/gentoo.htm">Purchase Win4Lin "Gentoo Edition"</a> and you'll also get a special Gentoo discount. Every sale also helps support Gentoo Linux development :)</p>
142 </td>
143 </tr>
144 <tr>
145 <td>
146 <img src="http://www.ibiblio.org/web-gentoo/images/line.gif" alt="line"/>
147 </td>
148 </tr>
149 <tr>
150 <td align="center">
151 <a href="http://www.qksrv.net/click-477620-5032687" target="_top">
152 <img src="http://www.qksrv.net/image-477620-5032687" width="125" height="125" alt="DDR Memory at Crucial.com" border="0"/>
153 </a>
154 <p class="alttext">Purchase RAM from <b>Crucial.com</b> and a percentage of your sale will go towards further Gentoo Linux development.</p>
155 </td>
156 </tr>
157 <tr>
158 <td>
159 <img src="http://www.ibiblio.org/web-gentoo/images/line.gif" alt="line"/>
160 </td>
161 </tr>
162 </table>
163 </td>
164 </tr>
165 </table>
166 <!--Netscape 4.7 hack end-->
167 </td>
168 </tr>
169 <tr>
170 <td colspan="2" align="right" class="infohead" width="100%" bgcolor="#7a5ada">
171 Copyright 2001-2003 Gentoo Technologies, Inc. Questions, Comments, Corrections? Email <a class="highlight" href="mailto:www@gentoo.org">www@gentoo.org</a>.
172 </td>
173 </tr>
174 </table>
175 </body>
176 </html>
177 </xsl:template>
178 <xsl:template match="/mainpage | /news | /email">
179 <html>
180 <head>
181 <link title="new" rel="stylesheet" href="/css/main.css" type="text/css"/>
182 <link REL="shortcut icon" HREF="/favicon.ico" TYPE="image/x-icon"/>
183 <xsl:choose>
184 <xsl:when test="/mainpage | /news">
185 <title>Gentoo Linux -- <xsl:value-of select="title"/></title>
186 </xsl:when>
187 <xsl:when test="/email">
188 <title><xsl:value-of select="subject"/></title>
189 </xsl:when>
190 </xsl:choose>
191 </head>
192 <body style="margin-left:0px;margin-top:0px;" bgcolor="#000000">
193 <!--<table border="0" width="100%" height="100%" cellspacing="0" cellpadding="0">-->
194 <table border="0" width="100%" cellspacing="0" cellpadding="0">
195 <tr>
196 <td valign="top" height="125" width="1%" bgcolor="#45347b">
197 <table cellspacing="0" cellpadding="0" border="0" width="100%">
198 <tr>
199 <td class="logobg" valign="top" align="center" height="88">
200 <a href="/index.xml">
201 <img border="0" src="http://www.ibiblio.org/web-gentoo/images/gtop-s.jpg" alt="Gentoo Logo"/>
202 </a>
203 </td>
204 </tr>
205 <tr>
206 <td class="logobg" valign="top" align="center" height="36">
207 <a href="/index.xml">
208 <img border="0" src="http://www.ibiblio.org/web-gentoo/images/gbot-s.gif" alt="Gentoo Logo Side"/>
209 </a>
210 </td>
211 </tr>
212 </table>
213 </td>
214 <td valign="bottom" align="left" bgcolor="#000000" colspan="2">
215 <p class="menu">
216 <xsl:choose>
217 <xsl:when test="/mainpage/@id='news'">
218 <a class="highlight" href="/index.xml">News</a> |
219 </xsl:when>
220 <xsl:otherwise>
221 <a class="menulink" href="/index.xml">News</a> |
222 </xsl:otherwise>
223 </xsl:choose>
224 <xsl:choose>
225 <xsl:when test="/mainpage/@id='about'">
226 <a class="highlight" href="/main/en/about.xml"> About </a> |
227 </xsl:when>
228 <xsl:otherwise>
229 <a class="menulink" href="/main/en/about.xml"> About </a> |
230 </xsl:otherwise>
231 </xsl:choose>
232 <xsl:choose>
233 <xsl:when test="/mainpage/@id='contract'">
234 <a class="highlight" href="/main/en/contract.xml"> Social Contract</a> |
235 </xsl:when>
236 <xsl:otherwise>
237 <a class="menulink" href="/main/en/contract.xml"> Social Contract</a> |
238 </xsl:otherwise>
239 </xsl:choose>
240 <xsl:choose>
241 <xsl:when test="/mainpage/@id='docs'">
242 <a class="highlight" href="/main/en/docs.xml">Docs</a> |
243 </xsl:when>
244 <xsl:otherwise>
245 <a class="menulink" href="/main/en/docs.xml">Docs</a> |
246 </xsl:otherwise>
247 </xsl:choose>
248 <a class="menulink" href="http://forums.gentoo.org">Forums</a> |
249 <xsl:choose>
250 <xsl:when test="/mainpage/@id='lists'">
251 <a class="highlight" href="/main/en/lists.xml"> Lists</a> |
252 </xsl:when>
253 <xsl:otherwise>
254 <a class="menulink" href="/main/en/lists.xml"> Lists</a> |
255 </xsl:otherwise>
256 </xsl:choose>
257 <a class="menulink" href="/main/en/shots.xml">ScreenShots</a> |
258 <a class="menulink" href="http://bugs.gentoo.org">Bugs</a> |
259 <a class="menulink" href="http://www.cafeshops.com/cp/store.aspx?s=gentoolinux">Store</a> |
260 <xsl:choose>
261 <xsl:when test="/mainpage/@id='newsletter'">
262 <a class="highlight" href="/news/en/gwn/gwn.xml"> GWN</a> |
263 </xsl:when>
264 <xsl:otherwise>
265 <a class="menulink" href="/news/en/gwn/gwn.xml"> GWN</a> |
266 </xsl:otherwise>
267 </xsl:choose>
268 <xsl:choose>
269 <xsl:when test="/mainpage/@id='where'">
270 <a class="highlight" href="/main/en/where.xml"> Get Gentoo!</a>
271 </xsl:when>
272 <xsl:otherwise>
273 <a class="menulink" href="/main/en/where.xml"> Get Gentoo!</a>
274 </xsl:otherwise>
275 </xsl:choose>
276 </p>
277 </td>
278
279
280 </tr>
281 <tr>
282 <td valign="top" align="right" width="1%" bgcolor="#dddaec">
283 <table width="100%" cellspacing="0" cellpadding="0" border="0">
284 <tr>
285 <td height="1%" valign="top" align="right">
286 <img src="http://www.ibiblio.org/web-gentoo/images/gridtest.gif" alt="Gentoo Spaceship"/>
287 </td>
288 </tr>
289 <tr>
290 <td height="99%" valign="top" align="right">
291 <!--info goes here-->
292 <table cellspacing="0" cellpadding="5" border="0">
293 <tr>
294 <td valign="top">
295 <p class="altmenu">
296 <!-- disable search for now
297 Search gentoo.org:<table border="0" cellspacing="0" cellpadding="0"><tr><td>
298 <form method="get" action="http://www.gentoo.org/cgi-bin/perlfect/search/search.pl">
299 <input type="hidden" name="p" value="1"/>
300 <input type="hidden" name="lang" value="en"/>
301 <input type="hidden" name="include" value=""/>
302 <input type="hidden" name="exclude" value=""/>
303 <input type="hidden" name="penalty" value="0"/>
304 <input type="hidden" name="mode" value="all"/>
305 <input type="text" name="q"/>
306 </form>
307 </td></tr></table>
308 <br/>
309 -->
310 Documentation:
311 <br/>
312 <a class="altlink" href="/main/en/about.xml">About Gentoo Linux</a>
313 <br/>
314 <a class="altlink" href="/main/en/docs.xml#top">User Docs</a>
315 <br/>
316 <a class="altlink" href="/main/en/docs.xml#doc_chap1_sect2">Developer Docs</a>
317 <br/>
318 <a class="altlink" href="/main/en/docs.xml#doc_chap1_sect3">Other Docs/Translations</a>
319 <br/>
320 <a class="altlink" href="/main/en/contract.xml">Social Contract</a>
321 <br/><br/>
322 Installation:
323 <br/>
324 <a class="altlink" href="/doc/en/gentoo-x86-install.xml">Gentoo Linux/x86</a>
325 <br/>
326 <a class="altlink" href="/doc/en/gentoo-ppc-install.xml">Gentoo Linux/PowerPC</a>
327 <br/>
328 <a class="altlink" href="/doc/en/gentoo-sparc-install.xml">Gentoo Linux/Sparc</a>
329 <br/><br/>
330 Resources:
331 <br/>
332 <a class="altlink" href="/main/en/lists.xml">Mailing lists</a>
333 <br/>
334 <a class="altlink" href="http://forums.gentoo.org">Discussion forums</a>
335 <br/>
336 <a class="hotlink" href="/dyn/index-cvs.xml">Daily CVS ChangeLog</a>
337 <br/>
338 <a class="altlink" href="http://bugs.gentoo.org">Bugzilla bug tracker</a>
339 <br/>
340 <a class="altlink" href="/main/en/mirrors.xml">Download Mirrors</a>
341 <br/>
342 <a class="altlink" href="/main/en/irc.xml">Official Gentoo IRC channels</a>
343 <br/>
344 <a class="altlink" href="/dyn/pkgs/index.xml">Online package database</a>
345 <br/>
346 <a class="altlink" href="http://cvs.gentoo.org/cgi-bin/viewcvs.cgi">View our CVS via the web</a>
347 <br/>
348 <a class="altlink" href="http://stats.gentoo.org">Gentoo Usage Statistics</a>
349 <br/>
350 <a class="altlink" href="/main/en/devlist.xml">Gentoo Linux developer list</a>
351 <br/><br/>
352 Graphics:
353 <br/>
354 <a class="altlink" href="/main/en/graphics.xml">Logos and themes</a>
355 <br/>
356 <a class="altlink" href="/main/en/icons.xml">Icons</a>
357 <br/>
358 <a class="altlink" href="/main/en/shots.xml">ScreenShots</a>
359 <br/><br/>
360 Miscellaneous Resources:
361 <br/>
362 <a class="altlink" href="http://www.cafeshops.com/cp/store.aspx?s=gentoolinux">Gentoo Linux Store</a>
363 <br/>
364 <a class="altlink" href="/main/en/projects.xml">Gentoo-hosted projects</a>
365 <br/>
366 <a class="altlink" href="/main/en/articles.xml">IBM dW/Intel article archive</a>
367
368 <xsl:if test="/mainpage/@id='news'">
369 <br/><br/>
370 Older News:<br/>
371 <xsl:for-each select="document('/dyn/news-index.xml')/uris/uri[position()&gt;=7][position()&lt;20]/text()">
372 <xsl:variable name="newsuri" select="."/>
373 <a class="altlink" href="{$newsuri}"><xsl:value-of select="document(.)/news/title"/></a><br/>
374 </xsl:for-each>
375 </xsl:if>
376 </p>
377 <br/><br />
378 </td>
379 </tr>
380 </table>
381 </td>
382 </tr>
383 </table>
384 </td>
385 <td valign="top" align="right" bgcolor="#ffffff">
386 <table border="0" cellspacing="5" cellpadding="0" width="100%">
387 <tr>
388 <td valign="top" align="left">
389 <xsl:choose>
390 <xsl:when test="/mainpage/@id='news'">
391 <table class="content" cellpadding="4" width="100%" border="0">
392 <tr>
393 <td valign="top">
394 <img src="http://www.ibiblio.org/web-gentoo/images/gentoo-new.gif" alt="new"/>
395 </td>
396 <td valign="middle">
397 Gentoo Linux is a high-performance ports-based Linux metadistribution for x86, PowerPC, UltraSparc and Alpha Processor systems. To learn more, <b><a href="/main/en/about.xml">click here</a></b>.
398 </td>
399 </tr>
400 </table>
401 <br/>
402 <xsl:for-each select="document('/dyn/news-index.xml')/uris/uri[position()&lt;7]/text()">
403 <table class="content" cellpadding="4" width="100%" border="0">
404 <tr>
405 <td colspan="2" bgcolor="#7a5ada">
406 <font color="#ffffff">
407 <b>
408 <xsl:value-of select="document(.)/news/title"/>
409 </b>
410 <br/>
411 <font size="-3">Posted on <xsl:value-of select="document(.)/news/date"/> by <xsl:value-of select="document(.)/news/poster"/></font>
412 </font>
413 </td>
414 </tr>
415 <tr>
416 <td width="100" align="center" valign="middle">
417 <xsl:choose>
418 <xsl:when test="document(.)/news/@category='alpha'">
419 <img src="http://www.ibiblio.org/web-gentoo/images/icon-alpha.gif" alt="AlphaServer GS160"/>
420 </xsl:when>
421 <xsl:when test="document(.)/news/@category='kde'">
422 <img src="http://www.ibiblio.org/web-gentoo/images/icon-kde.png" alt="KDE"/>
423 </xsl:when>
424 <xsl:when test="document(.)/news/@category='gentoo'">
425 <img src="http://www.ibiblio.org/web-gentoo/images/icon-gentoo.png" alt="gentoo"/>
426 </xsl:when>
427 <xsl:when test="document(.)/news/@category='main'">
428 <img src="http://www.ibiblio.org/web-gentoo/images/icon-stick.png" alt="stick man"/>
429 </xsl:when>
430 <xsl:when test="document(.)/news/@category='ibm'">
431 <img src="http://www.ibiblio.org/web-gentoo/images/icon-ibm.gif" alt="ibm"/>
432 </xsl:when>
433 <xsl:when test="document(.)/news/@category='linux'">
434 <img src="http://www.ibiblio.org/web-gentoo/images/icon-penguin.png" alt="tux"/>
435 </xsl:when>
436 <xsl:when test="document(.)/news/@category='moo'">
437 <img src="http://www.ibiblio.org/web-gentoo/images/icon-cow.png" alt="Larry the Cow"/>
438 </xsl:when>
439 <xsl:when test="document(.)/news/@category='nvidia'">
440 <img src="http://www.ibiblio.org/web-gentoo/images/icon-nvidia.png" alt="Nvidia"/>
441 </xsl:when>
442 </xsl:choose>
443 </td>
444 <td valign="top">
445 <xsl:choose>
446 <xsl:when test="document(.)/news/summary">
447 <xsl:apply-templates select="document(.)/news/summary"/>
448 <br/>
449 <a href="{@external}">
450 <b>(full story)</b>
451 </a>
452 </xsl:when>
453 <xsl:otherwise>
454 <xsl:apply-templates select="document(.)/news/body"/>
455 </xsl:otherwise>
456 </xsl:choose>
457 </td>
458 </tr>
459 </table>
460 <br/>
461 </xsl:for-each>
462 </xsl:when>
463 <xsl:when test="/news">
464 <table class="content" cellpadding="4" width="100%" border="0">
465 <tr>
466 <td colspan="2" bgcolor="#7a5ada">
467 <font color="#ffffff">
468 <b>
469 <xsl:value-of select="title"/>
470 </b>
471 <br/>
472 <font size="-3">Posted on <xsl:value-of select="date"/> by <xsl:value-of select="poster"/></font>
473 </font>
474 </td>
475 </tr>
476 <tr>
477 <td width="100" align="center" valign="top">
478 <xsl:choose>
479 <xsl:when test="@category='alpha'">
480 <img src="http://www.ibiblio.org/web-gentoo/images/icon-alpha.gif" alt="AlphaServer GS160"/>
481 </xsl:when>
482 <xsl:when test="@category='kde'">
483 <img src="http://www.ibiblio.org/web-gentoo/images/icon-kde.png" alt="KDE"/>
484 </xsl:when>
485 <xsl:when test="@category='gentoo'">
486 <img src="http://www.ibiblio.org/web-gentoo/images/icon-gentoo.png" alt="gentoo"/>
487 </xsl:when>
488 <xsl:when test="@category='main'">
489 <img src="http://www.ibiblio.org/web-gentoo/images/icon-stick.png" alt="stick man"/>
490 </xsl:when>
491 <xsl:when test="@category='ibm'">
492 <img src="http://www.ibiblio.org/web-gentoo/images/icon-ibm.gif" alt="IBM"/>
493 </xsl:when>
494 <xsl:when test="@category='linux'">
495 <img src="http://www.ibiblio.org/web-gentoo/images/icon-penguin.png" alt="Tux the Penguin"/>
496 </xsl:when>
497 <xsl:when test="@category='moo'">
498 <img src="http://www.ibiblio.org/web-gentoo/images/icon-cow.png" alt="Larry the Cow"/>
499 </xsl:when>
500 <xsl:when test="@category='nvidia'">
501 <img src="http://www.ibiblio.org/web-gentoo/images/icon-nvidia.png" alt="nvidia"/>
502 </xsl:when>
503 </xsl:choose>
504 </td>
505 <td valign="top">
506 <xsl:choose>
507 <xsl:when test="body">
508 <xsl:apply-templates select="body"/>
509 </xsl:when>
510 <xsl:when test="section">
511 <xsl:apply-templates select="section"/>
512 </xsl:when>
513 </xsl:choose>
514 </td>
515 </tr>
516 </table>
517 </xsl:when>
518 <xsl:when test="/email">
519 <xsl:apply-templates select="/email/body"/>
520 </xsl:when>
521 <xsl:otherwise>
522 <br/>
523 <table border="0" class="content">
524 <tr>
525 <td>
526 <xsl:apply-templates select="chapter"/>
527 </td>
528 </tr>
529 </table>
530 <br/>
531 <br/>
532 <br/>
533 </xsl:otherwise>
534 </xsl:choose>
535 <!--content end-->
536 </td>
537 </tr>
538 </table>
539 </td>
540 <td width="1%" bgcolor="#dddaec" valign="top">
541 <table border="0" cellspacing="5" cellpadding="0">
542 <tr>
543 <td>
544 <img src="http://www.ibiblio.org/web-gentoo/images/line.gif" alt="line"/>
545 </td>
546 </tr>
547 <xsl:choose>
548 <xsl:when test="/mainpage/date">
549 <tr><td align="center" class="alttext">
550 Updated <xsl:value-of select="/mainpage/date"/>
551 </td></tr>
552 <tr>
553 <td>
554 <img src="http://www.ibiblio.org/web-gentoo/images/line.gif" alt="line"/>
555 </td>
556 </tr>
557 </xsl:when>
558 <xsl:when test="/news/date">
559 <tr><td align="center" class="alttext">
560 Updated <xsl:value-of select="/news/date"/>
561 </td></tr>
562 <tr>
563 <td>
564 <img src="http://www.ibiblio.org/web-gentoo/images/line.gif" alt="line"/>
565 </td>
566 </tr>
567 </xsl:when>
568 </xsl:choose>
569 <tr>
570 <td align="center">
571 <!-- Begin PayPal Logo -->
572 <p class="alttext"><b>Donate</b> to support our development efforts.</p>
573 <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
574 <input type="hidden" name="cmd" value="_xclick"/>
575 <input type="hidden" name="business" value="drobbins@gentoo.org"/>
576 <input type="hidden" name="item_name" value="Gentoo Linux Support"/>
577 <input type="hidden" name="item_number" value="1000"/>
578 <input type="hidden" name="image_url" value="http://www.ibiblio.org/web-gentoo/images/paypal.png"/>
579 <input type="hidden" name="no_shipping" value="1"/>
580 <input type="hidden" name="return" value="http://www.gentoo.org"/>
581 <input type="hidden" name="cancel_return" value="http://www.gentoo.org"/>
582 <input type="image" src="http://images.paypal.com/images/x-click-but21.gif" name="submit" alt="Make payments with PayPal - it's fast, free and secure!"/>
583 </form>
584 </td>
585 </tr>
586 <tr>
587 <td>
588 <img src="http://www.ibiblio.org/web-gentoo/images/line.gif" alt="line"/>
589 </td>
590 </tr>
591 <tr>
592 <td align="center">
593 <a href="http://www.netraverse.com/gentoo.htm" target="_top">
594 <img src="http://www.ibiblio.org/web-gentoo/images/netraverse-gentoo.gif" width="125" height="102" alt="Win4Lin at NeTraverse" border="0"/>
595 </a>
596 <p class="alttext">Win4Lin from <b>NeTraverse</b> lets you run Windows applications under Gentoo Linux at native speeds. <a href="http://www.netraverse.com/gentoo.htm">Purchase Win4Lin "Gentoo Edition"</a> and you'll also get a special Gentoo discount. Every sale also helps support Gentoo Linux development :)</p>
597 </td>
598 </tr>
599 <tr>
600 <td>
601 <img src="http://www.ibiblio.org/web-gentoo/images/line.gif" alt="line"/>
602 </td>
603 </tr>
604 <tr>
605 <td align="center">
606 <a href="http://www.qksrv.net/click-477620-5032687" target="_top">
607 <img src="http://www.qksrv.net/image-477620-5032687" width="125" height="125" alt="DDR Memory at Crucial.com" border="0"/>
608 </a>
609 <p class="alttext">Purchase RAM from <b>Crucial.com</b> and a percentage of your sale will go towards further Gentoo Linux development.</p>
610 </td>
611 </tr>
612 <tr>
613 <td>
614 <img src="http://www.ibiblio.org/web-gentoo/images/line.gif" alt="line"/>
615 </td>
616 </tr>
617 </table>
618 </td>
619 <!--
620 <td width="15%" class="infotext" valign="top" align="left" bgcolor="#ddddff">
621 <table border="0" cellspacing="5" cellpadding="0" width="100%">
622 <tr>
623 <td>
624 <br/>
625 </td>
626 </tr>
627 </table>
628 </td>
629 -->
630 </tr>
631 <tr>
632 <td align="right" class="infohead" width="100%" colspan="3" bgcolor="#7a5ada">
633 Copyright 2001-2003 Gentoo
634 Technologies, Inc. Questions, Comments, Corrections? Email <a class="highlight" href="mailto:www@gentoo.org">www@gentoo.org</a>.
635 </td>
636 </tr>
637 </table>
638 </body>
639 </html>
640 </xsl:template>
641 <xsl:template match="newsitems">
642 <xsl:apply-templates select="news"/>
643 </xsl:template>
644 <xsl:template match="news">
645 <table width="100%" border="0" cellspacing="5" cellpadding="0">
646 <tr>
647 <td colspan="2" class="ncontent" bgcolor="#bbffbb">
648 <p class="note">
649 <font color="#7a5ada">
650 <b>
651 <xsl:value-of select="title"/>
652 </b>
653 </font>
654 </p>
655 </td>
656 </tr>
657 <tr>
658 <xsl:choose>
659 <xsl:when test="@align='left'">
660 <td rowspan="2" valign="top" width="1">
661 <img src="{@graphic}"/>
662 </td>
663 <td class="alttext">
664 <font color="#808080">Posted by <xsl:value-of select="poster"/> on <xsl:value-of select="date"/></font>
665 </td>
666 </xsl:when>
667 <xsl:otherwise>
668 <td class="alttext">
669 <font color="#808080">Posted by <xsl:value-of select="poster"/> on <xsl:value-of select="date"/></font>
670 </td>
671 <td rowspan="2" valign="top" width="1">
672 <img src="{@graphic}"/>
673 </td>
674 </xsl:otherwise>
675 </xsl:choose>
676 </tr>
677 <tr>
678 <td class="content" valign="top">
679 <xsl:apply-templates select="body"/>
680 </td>
681 </tr>
682 </table>
683 <br/>
684 <table width="100%">
685 <tr>
686 <td height="1" bgcolor="#c0c0c0"/>
687 </tr>
688 </table>
689 <br/>
690 </xsl:template>
691 <xsl:template match="mail">
692 <a href="mailto:{@link}">
693 <xsl:value-of select="."/>
694 </a>
695 </xsl:template>
696 <xsl:template match="author/mail">
697 <b>
698 <a class="altlink" href="mailto:{@link}">
699 <xsl:value-of select="."/>
700 </a>
701 </b>
702 </xsl:template>
703 <xsl:template match="author">
704 <xsl:apply-templates/>
705 <xsl:if test="@title">
706 <br/>
707 <i>
708 <xsl:value-of select="@title"/>
709 </i>
710 </xsl:if>
711 <br/>
712 <br/>
713 </xsl:template>
714 <xsl:template match="chapter">
715 <xsl:variable name="chid"><xsl:number/></xsl:variable>
716 <xsl:choose>
717 <xsl:when test="title">
718 <p class="chaphead">
719 <span class="chapnum">
720 <a name="doc_chap{$chid}"><xsl:number/>.</a>
721 </span>
722 <xsl:value-of select="title"/>
723 </p>
724 </xsl:when>
725 <xsl:otherwise>
726 <xsl:if test="/guide">
727 <p class="chaphead">
728 <span class="chapnum">
729 <a name="doc_chap{$chid}"><xsl:number/>.</a>
730 </span>
731 </p>
732 </xsl:if>
733 </xsl:otherwise>
734 </xsl:choose>
735 <xsl:apply-templates select="body">
736 <xsl:with-param name="chid" select="$chid"/>
737 </xsl:apply-templates>
738 <xsl:apply-templates select="section">
739 <xsl:with-param name="chid" select="$chid"/>
740 </xsl:apply-templates>
741 </xsl:template>
742 <xsl:template match="section">
743 <xsl:param name="chid"/>
744 <xsl:if test="title">
745 <xsl:variable name="sectid">doc_chap<xsl:value-of select="$chid"/>_sect<xsl:number/></xsl:variable>
746 <p class="secthead">
747 <a name="{$sectid}"><xsl:value-of select="title"/>&#160;</a>
748 </p>
749 </xsl:if>
750 <xsl:apply-templates select="body">
751 <xsl:with-param name="chid" select="$chid"/>
752 </xsl:apply-templates>
753 </xsl:template>
754 <!--
755 <xsl:template match="subsection">
756 <xsl:param name="chapid"/>
757 <xsl:if test="title">
758 <xsl:variable name="subsectid"><xsl:value-of select="$chapid"/>_subsect<xsl:number/></xsl:variable>
759 <p class="subsecthead">
760 <a name="{$subsectid}"><xsl:value-of select="title"/>&#160;</a>
761 </p>
762 </xsl:if>
763 <xsl:apply-templates select="body"/>
764 </xsl:template>
765 -->
766 <xsl:template match="figure">
767 <xsl:param name="chid"/>
768 <xsl:variable name="fignum">
769 <xsl:number level="any" from="chapter" count="figure"/>
770 </xsl:variable>
771 <xsl:variable name="figid">doc_chap<xsl:value-of select="$chid"/>_fig<xsl:value-of select="$fignum"/></xsl:variable>
772 <br/>
773 <a name="{$figid}"/>
774 <table cellspacing="0" cellpadding="0" border="0">
775 <tr>
776 <td class="infohead" bgcolor="#7a5ada">
777 <p class="caption">
778 <xsl:choose>
779 <xsl:when test="@caption">
780 Figure <xsl:value-of select="$chid"/>.<xsl:value-of select="$fignum"/>: <xsl:value-of select="@caption"/>
781 </xsl:when>
782 <xsl:otherwise>
783 Figure <xsl:value-of select="$chid"/>.<xsl:value-of select="$fignum"/>
784 </xsl:otherwise>
785 </xsl:choose>
786 </p>
787 </td>
788 </tr>
789 <tr>
790 <td align="center" bgcolor="#ddddff">
791 <xsl:choose>
792 <xsl:when test="@short">
793 <img src="{@link}" alt="Fig. {$fignum}: {@short}"/>
794 </xsl:when>
795 <xsl:otherwise>
796 <img src="{@link}" alt="Fig. {$fignum}"/>
797 </xsl:otherwise>
798 </xsl:choose>
799 </td>
800 </tr>
801 </table>
802 <br/>
803 </xsl:template>
804 <!--figure without a caption; just a graphical element-->
805 <xsl:template match="fig">
806 <center>
807 <xsl:choose>
808 <xsl:when test="@linkto">
809 <a href="{@linkto}">
810 <img src="{@link}" alt="{@short}"/>
811 </a>
812 </xsl:when>
813 <xsl:otherwise>
814 <img src="{@link}" alt="{@short}"/>
815 </xsl:otherwise>
816 </xsl:choose>
817 </center>
818 </xsl:template>
819 <xsl:template match="br">
820 <br/>
821 </xsl:template>
822 <xsl:template match="note">
823 <table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0">
824 <tr>
825 <td bgcolor="#bbffbb">
826 <p class="note">
827 <b>Note: </b>
828 <xsl:apply-templates/>
829 </p>
830 </td>
831 </tr>
832 </table>
833 </xsl:template>
834 <xsl:template match="impo">
835 <table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0">
836 <tr>
837 <td bgcolor="#ffffbb">
838 <p class="note">
839 <b>Important: </b>
840 <xsl:apply-templates/>
841 </p>
842 </td>
843 </tr>
844 </table>
845 </xsl:template>
846 <xsl:template match="warn">
847 <table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0">
848 <tr>
849 <td bgcolor="#ffbbbb">
850 <p class="note">
851 <b>Warning: </b>
852 <xsl:apply-templates/>
853 </p>
854 </td>
855 </tr>
856 </table>
857 </xsl:template>
858 <xsl:template match="codenote">
859 <span class="comment">// <xsl:value-of select="."/></span>
860 </xsl:template>
861 <xsl:template match="comment">
862 <span class="comment">
863 <xsl:apply-templates/>
864 </span>
865 </xsl:template>
866 <xsl:template match="i">
867 <span class="input">
868 <xsl:apply-templates/>
869 </span>
870 </xsl:template>
871 <xsl:template match="b">
872 <b>
873 <xsl:apply-templates/>
874 </b>
875 </xsl:template>
876 <xsl:template match="brite">
877 <font color="#ff0000">
878 <b>
879 <xsl:apply-templates/>
880 </b>
881 </font>
882 </xsl:template>
883
884 <xsl:template match="/email/body">
885 <table border="0"><tr><td>
886 <span class="content">
887 <p class="secthead">
888 Subject: <xsl:value-of select="/email/subject"/>
889 </p>
890 <p class="secthead"><font color="#000000">
891 List: <xsl:value-of select="/email/list"/> at gentoo.org<br/>
892 Date: <xsl:value-of select="/email/date"/><br/>
893 From: <xsl:value-of select="/email/from"/><br/><br/>
894 <xsl:if test="/email/nav/prev">
895 <xsl:for-each select="/email/nav/prev[position()=1]/text()">
896 <xsl:variable name="navloc" select="."/>
897 <xsl:variable name="navfile">/dyn/lists/<xsl:value-of select="/email/list"/>/<xsl:value-of select="."/>.xml</xsl:variable>
898 Previous: <a href="{$navfile}"><xsl:value-of select="document($navfile)/email/subject"/></a><br/>
899 </xsl:for-each>
900 </xsl:if>
901 <xsl:if test="/email/nav/next">
902 <xsl:for-each select="/email/nav/next[position()=1]/text()">
903 <xsl:variable name="navloc" select="."/>
904 <xsl:variable name="navfile">/dyn/lists/<xsl:value-of select="/email/list"/>/<xsl:value-of select="."/>.xml</xsl:variable>
905 Next: <a href="{$navfile}"><xsl:value-of select="document($navfile)/email/subject"/></a><br/>
906 </xsl:for-each>
907 </xsl:if>
908 <xsl:if test="/email/in-reply-to">
909 <xsl:for-each select="/email/in-reply-to[position()=1]/text()">
910 <xsl:variable name="irtloc" select="."/>
911 <xsl:variable name="irtfile">/dyn/lists/<xsl:value-of select="/email/list"/>/<xsl:value-of select="."/>.xml</xsl:variable>
912 In Reply To: <a href="{$irtfile}"><xsl:value-of select="document($irtfile)/email/subject"/></a><br/>
913 </xsl:for-each>
914 </xsl:if>
915 <xsl:if test="/email/replies">
916 <br/>Replies to this message:<br/>
917 <xsl:for-each select="/email/replies/reply/text()">
918 <xsl:variable name="rloc" select="."/>
919 <xsl:variable name="rfile">/dyn/lists/<xsl:value-of select="/email/list"/>/<xsl:value-of select="."/>.xml</xsl:variable>
920 &#160;<a href="{$rfile}"><xsl:value-of select="document($rfile)/email/subject"/></a><br/>
921 </xsl:for-each>
922 </xsl:if>
923 </font></p>
924 </span>
925 <pre>
926 <xsl:apply-templates/>
927 </pre>
928 </td></tr></table>
929 </xsl:template>
930
931 <xsl:template match="body">
932 <xsl:param name="chid"/>
933 <xsl:apply-templates>
934 <xsl:with-param name="chid" select="$chid"/>
935 </xsl:apply-templates>
936 </xsl:template>
937 <xsl:template match="c">
938 <span class="code">
939 <xsl:apply-templates/>
940 </span>
941 </xsl:template>
942 <xsl:template match="box">
943 <p class="infotext">
944 <xsl:apply-templates/>
945 </p>
946 </xsl:template>
947
948 <xsl:template match="pre">
949 <xsl:param name="chid"/>
950 <xsl:variable name="prenum">
951 <xsl:number level="any" from="chapter" count="pre"/>
952 </xsl:variable>
953 <xsl:variable name="preid">doc_chap<xsl:value-of select="$chid"/>_pre<xsl:value-of select="$prenum"/></xsl:variable>
954 <a name="{$preid}"/>
955 <table class="ntable" width="100%" cellspacing="0" cellpadding="0" border="0">
956 <tr>
957 <td class="infohead" bgcolor="#7a5ada">
958 <p class="caption">
959 <xsl:choose>
960 <xsl:when test="@caption">
961 Code listing <xsl:value-of select="$chid"/>.<xsl:value-of select="$prenum"/>: <xsl:value-of select="@caption"/>
962 </xsl:when>
963 <xsl:otherwise>
964 Code listing <xsl:value-of select="$chid"/>.<xsl:value-of select="$prenum"/>
965 </xsl:otherwise>
966 </xsl:choose>
967 </p>
968 </td>
969 </tr>
970 <tr>
971 <td bgcolor="#ddddff">
972 <pre>
973 <xsl:apply-templates/>
974 </pre>
975 </td>
976 </tr>
977 </table>
978 </xsl:template>
979 <xsl:template match="path">
980 <span class="path">
981 <xsl:value-of select="."/>
982 </span>
983 </xsl:template>
984 <xsl:template match="uri">
985 <!-- expand templates to handle things like <uri link="http://bar"><c>foo</c></uri> -->
986 <xsl:choose>
987 <xsl:when test="@link">
988 <a href="{@link}">
989 <xsl:apply-templates/>
990 </a>
991 </xsl:when>
992 <xsl:otherwise>
993 <xsl:variable name="loc" select="."/>
994 <a href="{$loc}">
995 <xsl:apply-templates/>
996 </a>
997 </xsl:otherwise>
998 </xsl:choose>
999 </xsl:template>
1000 <xsl:template match="p">
1001 <xsl:param name="chid"/>
1002 <xsl:choose>
1003 <xsl:when test="@class">
1004 <p class="{@class}">
1005 <xsl:apply-templates>
1006 <xsl:with-param name="chid" select="$chid"/>
1007 </xsl:apply-templates>
1008 </p>
1009 </xsl:when>
1010 <xsl:otherwise>
1011 <p>
1012 <xsl:apply-templates>
1013 <xsl:with-param name="chid" select="$chid"/>
1014 </xsl:apply-templates>
1015 </p>
1016 </xsl:otherwise>
1017 </xsl:choose>
1018 </xsl:template>
1019 <xsl:template match="e">
1020 <span class="emphasis">
1021 <xsl:apply-templates/>
1022 </span>
1023 </xsl:template>
1024 <xsl:template match="mail">
1025 <a href="mailto:{@link}">
1026 <xsl:value-of select="."/>
1027 </a>
1028 </xsl:template>
1029 <xsl:template match="table">
1030 <table class="ntable">
1031 <xsl:apply-templates/>
1032 </table>
1033 </xsl:template>
1034 <xsl:template match="tr">
1035 <tr>
1036 <xsl:apply-templates/>
1037 </tr>
1038 </xsl:template>
1039 <xsl:template match="ti">
1040 <td bgcolor="#ddddff" class="tableinfo">
1041 <xsl:apply-templates/>
1042 </td>
1043 </xsl:template>
1044 <xsl:template match="th">
1045 <td bgcolor="#7a5ada" class="infohead">
1046 <b>
1047 <xsl:apply-templates/>
1048 </b>
1049 </td>
1050 </xsl:template>
1051 <xsl:template match="ul">
1052 <ul>
1053 <xsl:apply-templates/>
1054 </ul>
1055 </xsl:template>
1056 <xsl:template match="ol">
1057 <ol>
1058 <xsl:apply-templates/>
1059 </ol>
1060 </xsl:template>
1061 <xsl:template match="li">
1062 <li>
1063 <xsl:apply-templates/>
1064 </li>
1065 </xsl:template>
1066 <xsl:template match="ignoreinemail">
1067 <xsl:apply-templates/>
1068 </xsl:template>
1069 <xsl:template match="ignoreinguide">
1070 </xsl:template>
1071
1072 </xsl:stylesheet>

  ViewVC Help
Powered by ViewVC 1.1.20