295 lines
		
	
	
	
		
			10 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			295 lines
		
	
	
	
		
			10 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="utf-8" ?>
 | ||
| <!DOCTYPE xsl:stylesheet PUBLIC "-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD//EN"
 | ||
| 				"http://www.FreeBSD.org/XML/share/xml/xslt10-freebsd.dtd" [
 | ||
| <!ENTITY title "The FreeBSD Project">
 | ||
| ]>
 | ||
| 
 | ||
| <!-- The FreeBSD Simplified Chinese Documentation Project -->
 | ||
| <!-- Original revision: 1.160 -->
 | ||
| <!-- $FreeBSD$ -->
 | ||
| 
 | ||
| <xsl:stylesheet version="1.0"
 | ||
|   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 | ||
|   xmlns="http://www.w3.org/1999/xhtml">
 | ||
| 
 | ||
|   <xsl:import href="http://www.FreeBSD.org/XML/lang/share/xml/libcommon.xsl"/>
 | ||
|   <xsl:import href="http://www.FreeBSD.org/XML/share/xml/xhtml.xsl"/>
 | ||
| 
 | ||
|   <!-- these params should be externally bound. The values
 | ||
|        here are not used actually -->
 | ||
|   <xsl:param name="advisories.xml" select="'none'"/>
 | ||
|   <xsl:param name="notices.xml" select="'none'"/>
 | ||
|   <xsl:param name="mirrors.xml" select="'none'"/>
 | ||
|   <xsl:param name="news.press.xml-master" select="'none'"/>
 | ||
|   <xsl:param name="news.press.xml" select="'none'"/>
 | ||
|   <xsl:param name="news.project.xml-master" select="'none'"/>
 | ||
|   <xsl:param name="news.project.xml" select="'none'"/>
 | ||
|   <xsl:param name="events.xml-master" select="'none'"/>
 | ||
|   <xsl:param name="events.xml" select="'none'"/>
 | ||
| 
 | ||
|   <xsl:variable name="svnKeyword">$FreeBSD$</xsl:variable>
 | ||
| 
 | ||
|   <xsl:variable name="title">&title;</xsl:variable>
 | ||
| 
 | ||
|   <xsl:template name="process.content">
 | ||
|         <div id="frontcontainer">
 | ||
|           <div id="frontmain">
 | ||
|             <div id="frontfeaturecontainer">
 | ||
| 
 | ||
| 		<div id="frontfeatureleft">
 | ||
| 			<div id="frontfeaturecontent">
 | ||
| 				<h1>
 | ||
| 				  基于 BSD &unix;
 | ||
| 				</h1>
 | ||
| 				<p>
 | ||
| 				  FreeBSD® 是可以用于
 | ||
| 				  x86 兼容机 (包括 Pentium® 和 Athlon™)、
 | ||
| 				  amd64 兼容机 (包括 Opteron™、 Athlon™64 和 EM64T)、
 | ||
| 				  UltraSPARC®、 IA-64、 PC-98 以及 ARM 硬件架构上的一种先进的操作系统。
 | ||
| 				  它源于 BSD, 由加州大学伯克利分校开发的 &unix; 版本。 目前由
 | ||
| 				  <a href="&enbase;/doc/en_US.ISO8859-1/articles/contributors/staff-committers.html">一支包含大量开发人员的团队</a> 维护。
 | ||
| 				  对于一些其它的 <a href="&base;/platforms/">硬件平台</a> 的支持,
 | ||
| 				  也正处于不同的开发阶段。
 | ||
| 				</p>
 | ||
| 				<div id="txtfrontfeaturelink">
 | ||
| 				»<a href="&base;/about.html" title="了解更多">了解更多</a>
 | ||
| 				</div> <!-- TXTFRONTFEATURELINK -->
 | ||
| 			</div> <!-- FRONTFEATURECONTENT -->
 | ||
| 		</div> <!-- FRONTFEATURELEFT -->
 | ||
| 
 | ||
| 		<div id="frontfeaturemiddle">
 | ||
| 			<div class="frontgetroundbox">
 | ||
| 			  <div class="frontgettop"><div><b style="display: none">.</b></div></div>
 | ||
| 				<div class="frontgetcontent">
 | ||
| 				  <a href="&base;/where.html">立即获得 FreeBSD</a>
 | ||
| 				</div> <!-- frontgetcontent -->
 | ||
| 			  <div class="frontgetbot"><div><b style="display: none">.</b></div></div>
 | ||
| 			</div> <!-- frontgetroundbox -->
 | ||
| 
 | ||
| 			<div id="frontreleases">
 | ||
| 			  <div id="frontreleasescontent" class="txtshortcuts">
 | ||
| 				  <h2><a href="&base;/releases/"> 最新版本 </a></h2>
 | ||
| 				  <ul id="frontreleaseslist">
 | ||
| 					<li>
 | ||
| 					  <a href="&enbase;/&u.rel.announce;">生产适用版 &rel.current;</a>
 | ||
| 					</li>
 | ||
| 					<li>
 | ||
| 					  <a href="&enbase;/&u.rel2.announce;">(旧式)生产适用版 &rel2.current;</a>
 | ||
| 					</li>
 | ||
| 			    <xsl:if test="'&beta.testing;' != 'IGNORE'">
 | ||
| 					<li>
 | ||
| 					  <a href="&base;/where.html#helptest">将发布的版本
 | ||
| 				            &betarel.current; - &betarel.vers;</a>
 | ||
| 					</li>
 | ||
| 			    </xsl:if>
 | ||
| 			    <xsl:if test="'&beta2.testing;' != 'IGNORE'">
 | ||
| 					<li>
 | ||
| 					  <a href="&base;/where.html#helptest">将发布的版本
 | ||
| 				            &betarel2.current; - &betarel2.vers;</a>
 | ||
| 					</li>
 | ||
| 			    </xsl:if>
 | ||
| 				  </ul>
 | ||
| 			  </div> <!-- FRONTRELEASESCONTENT -->
 | ||
| 			</div> <!-- FRONTRELEASES -->
 | ||
| 		</div> <!-- FRONTFEATUREMIDDLE -->
 | ||
| 
 | ||
| 		<div id="frontfeatureright">
 | ||
| 			<h2 class="blockhide">语言</h2>
 | ||
| 			<div id="languagenav">
 | ||
| 				<ul id="languagenavlist">
 | ||
| 				  <li>
 | ||
| 					<a href="&enbase;/de/" title="德语">de</a>
 | ||
| 				  </li>
 | ||
| 				  <li>
 | ||
| 					<a href="&enbase;/" title="英语">en</a>
 | ||
| 				  </li>
 | ||
| 				  <li>
 | ||
| 					<a href="&enbase;/es/" title="西班牙语">es</a>
 | ||
| 				  </li>
 | ||
| 				  <li>
 | ||
| 					<a href="&enbase;/fr/" title="法语">fr</a>
 | ||
| 				  </li>
 | ||
| 				  <li>
 | ||
| 					<a href="&enbase;/hu/" title="匈牙利语">hu</a>
 | ||
| 				  </li>
 | ||
| 				  <li>
 | ||
| 					<a href="&enbase;/it/" title="意大利语">it</a>
 | ||
| 				  </li>
 | ||
| 				  <li>
 | ||
| 					<a href="&enbase;/ja/" title="日语">ja</a>
 | ||
| 				  </li>
 | ||
| 				  <li>
 | ||
| 					<a href="&enbase;/ru/" title="俄语">ru</a>
 | ||
| 				  </li>
 | ||
| 				  <li class="last-child">
 | ||
| 					<a href="&enbase;/zh_CN/" title="中文 (简体)">zh_CN</a>
 | ||
| 				  </li>
 | ||
| 				</ul>
 | ||
| 			</div> <!-- LANGUAGENAV -->
 | ||
| 
 | ||
| 			<div id="mirror">
 | ||
| 			  <form action="&cgibase;/mirror.cgi" method="get">
 | ||
| 				<div>
 | ||
| 				  <h2 class="blockhide"><label for="MIRRORSEL">镜像</label></h2>
 | ||
| 				  <select id="mirrorsel" name="goto">
 | ||
| 					  <xsl:call-template name="html-index-mirrors-options-list">
 | ||
| 					    <xsl:with-param name="mirrors.xml" select="$mirrors.xml" />
 | ||
| 					  </xsl:call-template>
 | ||
| 				  </select>
 | ||
| 				</div> <!-- unnamed -->
 | ||
| 				<input type="submit" value="Go" />
 | ||
| 			  </form>
 | ||
| 			</div> <!-- MIRROR -->
 | ||
| 
 | ||
| 			<div id="frontshortcuts">
 | ||
| 			  <div id="frontshortcutscontent" class="txtshortcuts">
 | ||
| 				  <h2>常用链接</h2>
 | ||
| 				  <ul id="frontshortcutslist">
 | ||
| 					<li>
 | ||
| 					  <a href="&enbase;/community/mailinglists.html" title="邮件列表">邮件列表</a>
 | ||
| 					</li>
 | ||
| 					<li>
 | ||
| 					  <a href="&enbase;/support/bugreports.html" title="报告 Bug">报告 Bug</a>
 | ||
| 					</li>
 | ||
| 					<li>
 | ||
| 					  <a href="&enbase;/doc/en_US.ISO8859-1/books/faq/index.html" title="FAQ">FAQ</a>
 | ||
| 					</li>
 | ||
| 					<li>
 | ||
| 					  <a href="&enbase;/doc/zh_CN.UTF-8/books/handbook/index.html" title="Handbook">使用手册</a>
 | ||
| 					</li>
 | ||
| 					<li>
 | ||
| 					  <a href="&enbase;/ports/index.html" title="Ports">Ports</a>
 | ||
| 					</li>
 | ||
| 
 | ||
| 				  </ul>
 | ||
| 			  </div> <!-- FRONTSHORTCUTSCONTENT -->
 | ||
| 			</div> <!-- FRONTSHORTCUTS -->
 | ||
| 
 | ||
| 			<div class="frontnewroundbox">
 | ||
| 			  <div class="frontnewtop"><div><b style="display: none">.</b></div></div>
 | ||
| 			    <div class="frontnewcontent">
 | ||
| 			      <a href="&enbase;/projects/newbies.html">不熟悉 FreeBSD?</a>
 | ||
| 			    </div> <!-- frontnewcontent -->
 | ||
| 			  <div class="frontnewbot"><div><b style="display: none">.</b></div></div>
 | ||
| 			</div> <!-- frontnewroundbox -->
 | ||
| 		</div> <!-- FEATURERIGHT -->
 | ||
| 
 | ||
|             </div> <!-- FRONTFEATURECONTAINER -->
 | ||
| 
 | ||
| 	    <br class="clearboth" />
 | ||
|             <div id="frontnemscontainer">
 | ||
|             	<div id="frontnews">
 | ||
|             	   <div id="frontnewscontent" class="txtnewsevent">
 | ||
| 			<h2>新闻</h2>
 | ||
| 			<div class="newseventswrap">
 | ||
| 
 | ||
| 			<xsl:call-template name="html-index-news-project-items">
 | ||
| 				<xsl:with-param name="news.project.xml-master" select="$news.project.xml-master" />
 | ||
| 				<xsl:with-param name="news.project.xml" select="$news.project.xml" />
 | ||
| 			</xsl:call-template>
 | ||
| 
 | ||
| 			  <div>
 | ||
| 				<ul class="newseventslist">
 | ||
| 				  <li class="first-child">
 | ||
| 					<a href="&base;/news/newsflash.html" title="更多新闻">更多新闻</a>
 | ||
| 				  </li>
 | ||
| 				  <li class="last-child">
 | ||
| 					<a href="&base;/news/news.rdf" title="新闻 RSS Feed"><img class="rssimage" src="&enbase;/layout/images/ico_rss.png" width="27" height="12" alt="新闻 RSS Feed" /></a>
 | ||
| 				  </li>
 | ||
| 				</ul>
 | ||
| 			  </div> <!-- unnamed -->
 | ||
| 			</div> <!-- newseventswrap -->
 | ||
| 
 | ||
|             	   </div> <!-- FRONTNEWSCONTENT -->
 | ||
|             	</div> <!-- FRONTNEWS -->
 | ||
|             	<div class="frontseparator"><b style="display: none">.</b></div>
 | ||
|             	<div id="frontevents">
 | ||
| 		   <div id="fronteventscontent" class="txtnewsevent">
 | ||
| 
 | ||
| 			<h2>近期活动</h2>
 | ||
| 			<div class="newseventswrap">
 | ||
| 
 | ||
| 			<xsl:call-template name="html-index-events-items">
 | ||
| 				<xsl:with-param name="events.xml-master" select="$events.xml-master" />
 | ||
| 				<xsl:with-param name="events.xml" select="$events.xml" />
 | ||
| 			</xsl:call-template>
 | ||
| 
 | ||
| 			  <div>
 | ||
| 				<ul class="newseventslist">
 | ||
| 				  <li class="only-child">
 | ||
| 					<a href="&enbase;/events/" title="更多活动">更多活动</a>
 | ||
| 				  </li>
 | ||
| 				</ul>
 | ||
| 			  </div> <!-- unnamed -->
 | ||
| 			</div> <!-- newseventswrap -->
 | ||
| 
 | ||
| 		   </div> <!-- FRONTEVENTSCONTENT -->
 | ||
|             	</div> <!-- FRONTEVENTS -->
 | ||
|             	<div class="frontseparator"><b style="display: none">.</b></div>
 | ||
|             	<div id="frontmedia">
 | ||
| 		   <div id="frontmediacontent" class="txtnewsevent">
 | ||
| 
 | ||
| 			<h2>媒体报道</h2>
 | ||
| 			<div class="newseventswrap">
 | ||
| 
 | ||
| 			<xsl:call-template name="html-index-news-press-items">
 | ||
| 				<xsl:with-param name="news.press.xml-master" select="$news.press.xml-master" />
 | ||
| 				<xsl:with-param name="news.press.xml" select="$news.press.xml" />
 | ||
| 			</xsl:call-template>
 | ||
| 
 | ||
| 			  <div>
 | ||
| 				<ul class="newseventslist">
 | ||
| 				  <li class="only-child">
 | ||
| 					<a href="&base;/news/press.html" title="更多媒体报道">更多媒体报道</a>
 | ||
| 				  </li>
 | ||
| 				</ul>
 | ||
| 			  </div> <!-- unnamed -->
 | ||
| 			</div> <!-- newseventswrap -->
 | ||
| 
 | ||
| 		   </div> <!-- FRONTMEDIACONTENT -->
 | ||
|             	</div> <!-- FRONTMEDIA -->
 | ||
| 		<div class="frontseparator"><b style="display: none">.</b></div>
 | ||
| 		<div id="frontsecurity">
 | ||
| 		   <div id="frontsecuritycontent" class="txtnewsevent">
 | ||
| 
 | ||
| 			<h2>安全公告</h2>
 | ||
| 			<div class="newseventswrap">
 | ||
| 
 | ||
| 			<xsl:call-template name="html-index-advisories-items">
 | ||
| 				<xsl:with-param name="advisories.xml" select="$advisories.xml" />
 | ||
| 				<xsl:with-param name="type" select="'advisory'" />
 | ||
| 			</xsl:call-template>
 | ||
| 
 | ||
| 			  <div>
 | ||
| 				<ul class="newseventslist">
 | ||
| 				  <li class="first-child">
 | ||
| 					<a href="&base;/security/" title="更多安全公告">更多</a>
 | ||
| 				  </li>
 | ||
| 				  <li class="last-child">
 | ||
| 					<a href="&enbase;/security/advisories.rdf" title="安全公告 RSS Feed"><img class="rssimage" src="&enbase;/layout/images/ico_rss.png" width="27" height="12" alt="安全公告 RSS Feed" /></a>
 | ||
| 				  </li>
 | ||
| 				</ul>
 | ||
| 			  </div> <!-- unnamed -->
 | ||
| 			</div> <!-- newseventswrap -->
 | ||
| 
 | ||
| 			<br />
 | ||
| 			<h2>发行版修正公告</h2>
 | ||
| 			<div class="newseventswrap">
 | ||
| 
 | ||
| 			<xsl:call-template name="html-index-advisories-items">
 | ||
| 				<xsl:with-param name="advisories.xml" select="$notices.xml" />
 | ||
| 				<xsl:with-param name="type" select="'notice'" />
 | ||
| 			</xsl:call-template>
 | ||
| 
 | ||
| 			</div> <!-- newseventswrap -->
 | ||
| 
 | ||
| 		   </div> <!-- FRONTSECURITYCONTENT -->
 | ||
|             	</div> <!-- FRONTSECURITY -->
 | ||
| 
 | ||
| 		<br class="clearboth" />
 | ||
| 
 | ||
|             </div> <!-- FRONTNEMSCONTAINER -->
 | ||
|           </div> <!-- FRONTMAIN -->
 | ||
|         </div> <!-- FRONTCONTAINER -->
 | ||
|   </xsl:template>
 | ||
| </xsl:stylesheet>
 |