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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.61 - (show annotations) (download) (as text)
Sat Aug 2 17:00:44 2003 UTC (9 years, 9 months ago) by swift
Branch: MAIN
Changes since 1.60: +8 -0 lines
File MIME type: application/xml
Add license-tag information

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

  ViewVC Help
Powered by ViewVC 1.1.13