/[gentoo-dk]/gentoo-dk/xsl/guide.xsl
ViewVC logotype

Diff of /gentoo-dk/xsl/guide.xsl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

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

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26