<?xml version="1.0" encoding="iso-8859-15"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output encoding="iso-8859-15" method="html" indent="yes" doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
	<xsl:preserve-space elements="pre"/>
	<xsl:template match="img">
		<img src="{@src}"/>
	</xsl:template>
	<xsl:template match="/guide">
	<html>
	<head>
<link title="new" rel="stylesheet" href="/css/main.css" type="text/css"/>
	<link REL="shortcut icon" HREF="http://www.gentoo.org/favicon.ico" TYPE="image/x-icon"/>
	<title>Gentoo Linux 
	<xsl:choose><xsl:when test="/guide/@type='project'">
		Projects
	</xsl:when><xsl:otherwise>
		Documentation
	</xsl:otherwise></xsl:choose>
-- 
	<xsl:choose><xsl:when test="subtitle"><xsl:value-of select="title"/>: <xsl:value-of select="subtitle"/></xsl:when><xsl:otherwise><xsl:value-of select="title"/></xsl:otherwise></xsl:choose></title>
	</head>
	<body style="margin-left:0px;margin-top:0px;" bgcolor="#ffffff">
	<!--<table border="0" width="100%" cellspacing="0" cellpadding="0">-->
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<tr>
	<td valign="top" height="125" bgcolor="#45347b">
		<table cellspacing="0" cellpadding="0" border="0" width="193">
			<tr>
				<td class="logobg" valign="top" align="center" height="88">
					<a href="/index.xml">
						<img border="0" src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/gtop-s.jpg" alt="Gentoo Logo"/>
					</a>
				</td>
			</tr>
			<tr>
				<td class="logobg" valign="top" align="center" height="36">
					<a href="/index.xml">
						<img border="0" src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/gbot-s.gif" alt="Gentoo Logo Side"/>
					</a>
				</td>
			</tr>
		</table>
	</td>
	</tr>
	<tr>
		<td valign="top" align="right" 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><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><!--		<xsl:variable name="me"><xsl:value-of select="/guide/@link"/></xsl:variable>--><option value="#{$chapid}"><xsl:number/>. <xsl:value-of select="title"/></option><!--
		&#160;<xsl:number/>&#160;<a class="altlink" href="#{$chapid}"><xsl:value-of select="title"/></a><br/>
	<xsl:value-of select="/guide/@link"/>
	<option value="showdoc.html?i=1514&p=1">Select											

				--></xsl:for-each></select></form>
                    <xsl:apply-templates select="chapter"/>
                    <br/>
                    <br/>
<!--content end-->
                  </td>
                  <td width="1%" bgcolor="#dddaec" valign="top">
                    <table border="0" cellspacing="5" cellpadding="0">
                      <tr>
                        <td>
                          <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"/>
                        </td>
                      </tr>
                      <tr>
                        <td align="center" class="alttext">
				Updated <xsl:value-of select="/guide/date"/>
			</td>
                      </tr>
		      <tr>
		      	<td>
				<img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"/>
                        </td>
                      </tr>
                      <tr>
                        <td class="alttext">
                          <xsl:apply-templates select="/guide/author"/>
                        </td>
                      </tr>
                      <tr>
                        <td>
                          <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"/>
                        </td>
                      </tr>
                      <tr>
                        <td class="alttext"><b>Summary:</b> <xsl:apply-templates select="abstract"/></td>
                      </tr>
                      <tr>
                        <td>
                          <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"/>
                        </td>
                      </tr>
                <tr>
                  <td align="center">
<!-- Begin PayPal Logo -->
		<p class="alttext"><b>Donate</b> to support our development efforts.</p>
                    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
                      <input type="hidden" name="cmd" value="_xclick"/>
                      <input type="hidden" name="business" value="drobbins@gentoo.org"/>
                      <input type="hidden" name="item_name" value="Gentoo Linux Support"/>
                      <input type="hidden" name="item_number" value="1000"/>
                      <input type="hidden" name="image_url" value="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/paypal.png"/>
                      <input type="hidden" name="no_shipping" value="1"/>
                      <input type="hidden" name="return" value="http://www.gentoo.org"/>
                      <input type="hidden" name="cancel_return" value="http://www.gentoo.org"/>
                      <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!"/>
                    </form>
                  </td>
                </tr>
                <tr>
                  <td>
                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/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="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"/>
                  </td>
                </tr>
		<tr>
			<td>
				<p class="alttext">
				<b>Looking for the right Web designer?</b> Marketingtool.com is the world's
				largest directory of Web developers and other marketing-oriented firms. Use
				Marketingtool.com's free <a href="http://www.marketingtool.com/editorspick.php?gentoo=1">"Editor's Pick" service</a> to find the Web design team
				that meets your exact needs.
				<br/><br/>
				<b>Are you a Web designer?</b> Then <a href="http://www.marketingtool.com/contribute/webfirm.html?gentoo=1">place a featured listing</a> on Marketingtool.com to
				get noticed world-wide!
				<br/><br/>
				When you use "Editor's Pick" or place a featured listing, <a href="http://www.marketingtool.com?gentoo=1">Marketingtool.com</a>
				will donate a portion of revenue to the Gentoo Linux free software project.
				</p>
			</td>
			</tr>
			      <tr>
                  <td>
                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"/>
                  </td>
                </tr>
			</table>
			</td>
			</tr>
			</table>
<!--Netscape 4.7 hack end-->
			</td>
          </tr>
          <tr>
            <td align="right" class="infohead" width="100%" bgcolor="#7a5ada">
			Copyright 2001-2002 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">
    <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"/>
        <title>Gentoo Linux -- <xsl:value-of select="title"/></title>
      </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="/index.xml">
                      <img border="0" src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/gtop-s.jpg" alt="Gentoo Logo"/>
                    </a>
                  </td>
                </tr>
                <tr>
                  <td class="logobg" valign="top" align="center" height="36">
                    <a href="/index.xml">
                      <img border="0" src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/gbot-s.gif" alt="Gentoo Logo Side"/>
                    </a>
                  </td>
                </tr>
              </table>
            </td>
            <td colspan="2" valign="bottom" align="left" bgcolor="#000000">
              <p class="menu">
	      	<xsl:choose>
			<xsl:when test="/mainpage/@id='news'">
				<a class="highlight" href="/index.xml">News</a> |
			</xsl:when>
			<xsl:otherwise>
				<a class="menulink" href="/index.xml">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">Documentation</a> |
			</xsl:when>
			<xsl:otherwise>
				<a class="menulink" href="/main/en/docs.xml">Documentation</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://www.cafeshops.com/cp/store.aspx?s=gentoolinux">Store (new!)</a></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="http://www.ibiblio.org/pub/Linux/distributions/gentoo/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">
				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_chap1_sect2">Developer Docs</a>
				<br/>
				<a class="altlink" href="/main/en/docs.xml#doc_chap1_sect3">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/build.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/><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="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://cvs.gentoo.org/cgi-bin/viewcvs.cgi">View our CVS via the web</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="/main/en/shots.xml">ScreenShots</a>
				<br/><br/>	
				Miscellaneous Resources:
				<br/>
				<a class="altlink" href="http://www.cafeshops.com/cp/store.aspx?s=gentoolinux">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>
                              <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/gentoo-new.gif" alt="new"/>
                            </td>
                            <td valign="middle">Gentoo Linux is a high-performance ports-based Linux metadistribution for x86, PowerPC, UltraSparc and Alpha Processor systems.  To learn more, <b><a href="/main/en/about.xml">click here</a></b>.</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="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-alpha.gif" alt="AlphaServer GS160"/>
                                  </xsl:when>
	                                  <xsl:when test="document(.)/news/@category='kde'">
                                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-kde.png" alt="KDE"/>
                                  </xsl:when>
									<xsl:when test="document(.)/news/@category='gentoo'">
                                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-gentoo.png" alt="gentoo"/>
                                  </xsl:when>
                                  <xsl:when test="document(.)/news/@category='main'">
                                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-stick.png" alt="stick man"/>
                                  </xsl:when>
                                  <xsl:when test="document(.)/news/@category='ibm'">
                                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-ibm.gif" alt="ibm"/>
                                  </xsl:when>
                                  <xsl:when test="document(.)/news/@category='linux'">
                                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-penguin.png" alt="tux"/>
                                  </xsl:when>
                                  <xsl:when test="document(.)/news/@category='moo'">
                                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-cow.png" alt="Larry the Cow"/>
                                  </xsl:when>
                                  <xsl:when test="document(.)/news/@category='nvidia'">
                                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/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>
                          <br/>
                        </xsl:for-each>
                      </xsl:when>
                      <xsl:when test="/news">
                        <table class="content" cellpadding="4" width="100%" border="0">
                          <tr>
                            <td colspan="2" bgcolor="#7a5ada">
                              <font color="#ffffff">
                                <b>
                                  <xsl:value-of select="title"/>
                                </b>
                                <br/>
                                <font size="-3">Posted on <xsl:value-of select="date"/> by <xsl:value-of select="poster"/></font>
                              </font>
                            </td>
                          </tr>
                          <tr>
                            <td width="100" align="center" valign="top">
                              <xsl:choose>
                                 <xsl:when test="@category='alpha'">
                                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-alpha.gif" alt="AlphaServer GS160"/>
                                  </xsl:when>
	                                  <xsl:when test="@category='kde'">
                                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-kde.png" alt="KDE"/>
                                  </xsl:when>
								<xsl:when test="@category='gentoo'">
                                  <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-gentoo.png" alt="gentoo"/>
                                </xsl:when>
                                <xsl:when test="@category='main'">
                                  <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-stick.png" alt="stick man"/>
                                </xsl:when>
                                <xsl:when test="@category='ibm'">
                                  <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-ibm.gif" alt="IBM"/>
                                </xsl:when>
                                <xsl:when test="@category='linux'">
                                  <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-penguin.png" alt="Tux the Penguin"/>
                                </xsl:when>
                                <xsl:when test="@category='moo'">
                                  <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-cow.png" alt="Larry the Cow"/>
                                </xsl:when>
                                <xsl:when test="@category='nvidia'">
                                  <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/icon-nvidia.png" alt="nvidia"/>
                                </xsl:when>
                              </xsl:choose>
                            </td>
                            <td valign="top">
                              <xsl:choose>
                                <xsl:when test="body">
                                  <xsl:apply-templates select="body"/>
                                </xsl:when>
                                <xsl:when test="section">
                                  <xsl:apply-templates select="section"/>
                                </xsl:when>
                              </xsl:choose>
                            </td>
                          </tr>
                        </table>
                      </xsl:when>
                      <xsl:otherwise>
                        <br/>
                        <table border="0" class="content">
                          <tr>
                            <td>
                              <xsl:apply-templates select="chapter"/>
                            </td>
                          </tr>
                        </table>
                        <br/>
                        <br/>
                        <br/>
                      </xsl:otherwise>
                    </xsl:choose>
<!--content end-->
                  </td>
                </tr>
              </table>
            </td>
            <td width="1%" bgcolor="#dddaec" valign="top">
              <table border="0" cellspacing="5" cellpadding="0">
                <tr>
                  <td>
                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"/>
                  </td>
                </tr>
					<xsl:choose>
					<xsl:when test="/mainpage/date">
                  		<tr><td align="center" class="alttext">
						Updated <xsl:value-of select="/mainpage/date"/>
						</td></tr>
						<tr>
						<td>
							<img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"/>
						</td>
						</tr>
					</xsl:when>
					<xsl:when test="/news/date">
                  		<tr><td align="center" class="alttext">
						Updated <xsl:value-of select="/news/date"/>
						</td></tr>
						<tr>
						<td>
							<img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"/>
						</td>
						</tr>
					</xsl:when>
					</xsl:choose>
			   	<tr>
                  <td align="center">
<!-- Begin PayPal Logo -->
					<p class="alttext"><b>Donate</b> to support our development efforts.</p>
                    <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
                      <input type="hidden" name="cmd" value="_xclick"/>
                      <input type="hidden" name="business" value="drobbins@gentoo.org"/>
                      <input type="hidden" name="item_name" value="Gentoo Linux Support"/>
                      <input type="hidden" name="item_number" value="1000"/>
                      <input type="hidden" name="image_url" value="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/paypal.png"/>
                      <input type="hidden" name="no_shipping" value="1"/>
                      <input type="hidden" name="return" value="http://www.gentoo.org"/>
                      <input type="hidden" name="cancel_return" value="http://www.gentoo.org"/>
                      <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!"/>
                    </form>
                  </td>
                </tr>
                <tr>
                  <td>
                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/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="http://www.ibiblio.org/pub/Linux/distributions/gentoo/images/line.gif" alt="line"/>
                  </td>
                </tr>
		<tr>
			<td>
			<p class="alttext">
				<b>Looking for the right Web designer?</b> Marketingtool.com is the world's
					largest directory of Web developers and other marketing-oriented firms. Use
					Marketingtool.com's free <a href="http://www.marketingtool.com/editorspick.php?gentoo=1">"Editor's Pick" service</a> to find the Web design team
					that meets your exact needs.
					<br/><br/>
					<b>Are you a Web designer?</b> Then <a href="http://www.marketingtool.com/contribute/webfirm.html?gentoo=1">place a featured listing</a> on Marketingtool.com to
					get noticed world-wide!
					<br/><br/>
					When you use "Editor's Pick" or place a featured listing, <a href="http://www.marketingtool.com?gentoo=1">Marketingtool.com</a>
					will donate a portion of revenue to the Gentoo Linux free software project.
				</p>
			</td>
		</tr>
		<tr>
                  <td>
                    <img src="http://www.ibiblio.org/pub/Linux/distributions/gentoo/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-2002 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>
        <xsl:choose>
          <xsl:when test="@align='left'">
            <td rowspan="2" valign="top" width="1">
              <img src="{@graphic}"/>
            </td>
            <td class="alttext">
              <font color="#808080">Posted by <xsl:value-of select="poster"/> on <xsl:value-of select="date"/></font>
            </td>
          </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>
        </xsl:choose>
      </tr>
      <tr>
        <td class="content" valign="top">
          <xsl:apply-templates select="body"/>
        </td>
      </tr>
    </table>
    <br/>
    <table width="100%">
      <tr>
        <td height="1" bgcolor="#c0c0c0"/>
      </tr>
    </table>
    <br/>
  </xsl:template>
  <xsl:template match="mail">
    <a href="mailto:{@link}">
      <xsl:value-of select="."/>
    </a>
  </xsl:template>
  <xsl:template match="author/mail">
    <b>
      <a class="altlink" href="mailto:{@link}">
        <xsl:value-of select="."/>
      </a>
    </b>
  </xsl:template>
  <xsl:template match="author">
    <xsl:apply-templates/>
    <xsl:if test="@title">
      <br/>
      <i>
        <xsl:value-of select="@title"/>
      </i>
    </xsl:if>
    <br/>
    <br/>
  </xsl:template>
  <xsl:template match="chapter">
    <xsl:variable name="chid"><xsl:number/></xsl:variable>
    <xsl:choose>
      <xsl:when test="title">
        <p class="chaphead">
          <font class="chapnum">
            <a name="doc_chap{$chid}"><xsl:number/>.</a>
          </font>
          <xsl:value-of select="title"/>
        </p>
      </xsl:when>
      <xsl:otherwise>
        <xsl:if test="/guide">
          <p class="chaphead">
            <font class="chapnum">
              <a name="doc_chap{$chid}"><xsl:number/>.</a>
            </font>
          </p>
        </xsl:if>
      </xsl:otherwise>
    </xsl:choose>
    <xsl:apply-templates select="body">
      <xsl:with-param name="chid" select="$chid"/>
    </xsl:apply-templates>
    <xsl:apply-templates select="section">
      <xsl:with-param name="chid" select="$chid"/>
    </xsl:apply-templates>
  </xsl:template>
  <xsl:template match="section">
    <xsl:param name="chid"/>
    <xsl:if test="title">
      <xsl:variable name="sectid">doc_chap<xsl:value-of select="$chid"/>_sect<xsl:number/></xsl:variable>
      <p class="secthead">
        <a name="{$sectid}"><xsl:value-of select="title"/> </a>
      </p>
    </xsl:if>
    <xsl:apply-templates select="body">
      <xsl:with-param name="chid" select="$chid"/>
    </xsl:apply-templates>
  </xsl:template>
<!--  
  <xsl:template match="subsection">
    <xsl:param name="chapid"/>
    <xsl:if test="title">
      <xsl:variable name="subsectid"><xsl:value-of select="$chapid"/>_subsect<xsl:number/></xsl:variable>
      <p class="subsecthead">
        <a name="{$subsectid}"><xsl:value-of select="title"/> </a>
      </p>
    </xsl:if>
    <xsl:apply-templates select="body"/>
  </xsl:template>
-->
  <xsl:template match="figure">
    <xsl:with-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>
      <xsl:choose>
        <xsl:when test="@linkto">
          <a href="{@linkto}">
            <img src="{@link}" alt="{@short}"/>
          </a>
        </xsl:when>
        <xsl:otherwise>
          <img src="{@link}" alt="{@short}"/>
        </xsl:otherwise>
      </xsl:choose>
    </center>
  </xsl:template>
  <xsl:template match="br">
    <br/>
  </xsl:template>
  <xsl:template match="note">
    <table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td bgcolor="#bbffbb">
          <p class="note">
            <b>Note: </b>
            <xsl:apply-templates/>
          </p>
        </td>
      </tr>
    </table>
  </xsl:template>
  <xsl:template match="impo">
    <table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td bgcolor="#ffffbb">
          <p class="note">
            <b>Important: </b>
            <xsl:apply-templates/>
          </p>
        </td>
      </tr>
    </table>
  </xsl:template>
  <xsl:template match="warn">
    <table class="ncontent" width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td bgcolor="#ffbbbb">
          <p class="note">
            <b>Warning: </b>
            <xsl:apply-templates/>
          </p>
        </td>
      </tr>
    </table>
  </xsl:template>
  <xsl:template match="codenote">
    <font class="comment">// <xsl:value-of select="."/></font>
  </xsl:template>
  <xsl:template match="comment">
    <font class="comment">
      <xsl:apply-templates/>
    </font>
  </xsl:template>
  <xsl:template match="i">
    <font class="input">
      <xsl:apply-templates/>
    </font>
  </xsl:template>
  <xsl:template match="b">
    <b>
      <xsl:apply-templates/>
    </b>
  </xsl:template>
  <xsl:template match="brite">
    <font color="#ff0000">
      <b>
        <xsl:apply-templates/>
      </b>
    </font>
  </xsl:template>
  <xsl:template match="body">
    <xsl:param name="chid"/>
    <xsl:apply-templates>
      <xsl:with-param name="chid" select="$chid"/>
    </xsl:apply-templates>
  </xsl:template>
  <xsl:template match="c">
    <font class="code">
      <xsl:apply-templates/>
    </font>
  </xsl:template>
  <xsl:template match="box">
    <p class="infotext">
      <xsl:apply-templates/>
    </p>
  </xsl:template>
  <xsl:template match="pre">
    <xsl: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">
    <font class="path">
      <xsl:value-of select="."/>
    </font>
  </xsl:template>
  <xsl:template match="uri">
<!-- expand templates to handle things like <uri link="http://bar"><c>foo</c></uri> -->
    <xsl:choose>
      <xsl:when test="@link">
        <a href="{@link}">
          <xsl:apply-templates/>
        </a>
      </xsl:when>
      <xsl:otherwise>
        <xsl:variable name="loc" select="."/>
        <a href="{$loc}">
          <xsl:apply-templates/>
        </a>
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
  <xsl:template match="p">
    <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">
    <font class="emphasis">
      <xsl:apply-templates/>
    </font>
  </xsl:template>
  <xsl:template match="mail">
    <a href="mailto:{@link}">
      <xsl:value-of select="."/>
    </a>
  </xsl:template>
  <xsl:template match="table">
    <table class="ntable">
      <xsl:apply-templates/>
    </table>
  </xsl:template>
  <xsl:template match="tr">
    <tr>
      <xsl:apply-templates/>
    </tr>
  </xsl:template>
  <xsl:template match="ti">
    <td bgcolor="#ddddff" class="tableinfo">
      <xsl:apply-templates/>
    </td>
  </xsl:template>
  <xsl:template match="th">
    <td bgcolor="#7a5ada" class="infohead">
      <b>
        <xsl:apply-templates/>
      </b>
    </td>
  </xsl:template>
  <xsl:template match="ul">
    <ul>
      <xsl:apply-templates/>
    </ul>
  </xsl:template>
  <xsl:template match="ol">
    <ol>
      <xsl:apply-templates/>
    </ol>
  </xsl:template>
  <xsl:template match="li">
    <li>
      <xsl:apply-templates/>
    </li>
  </xsl:template>
</xsl:stylesheet>
