MFP4: New header/footer/navigation designs.
Submitted by: Emily Boyd (soc-emily@freebsd.org) Sponsored by: Google Summer of Code 2005
This commit is contained in:
parent
18bc86d6e9
commit
4f71e4be93
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=25812
3 changed files with 388 additions and 93 deletions
|
@ -1,4 +1,4 @@
|
|||
<!-- $FreeBSD: www/share/sgml/includes.header.sgml,v 1.4 2005/02/12 12:48:47 ceri Exp $ -->
|
||||
<!-- $FreeBSD: www/share/sgml/includes.header.sgml,v 1.5 2005/02/12 13:06:38 ceri Exp $ -->
|
||||
|
||||
<!-- Images -->
|
||||
<!ENTITY i.daemon '<img src="&base;/gifs/daemon.gif" alt="" align="left" width="80" height="76">'>
|
||||
|
@ -7,49 +7,122 @@
|
|||
<!-- Components making up the standard headers and footers. -->
|
||||
<!-- Override in the prolog <em>before</em> including this -->
|
||||
<!-- file if necessary. -->
|
||||
<!ENTITY copyright '© 1995-2005 The FreeBSD Project.
|
||||
<!ENTITY copyright '<a href="&base;/copyright/">Legal Notices</a> | © 1995-2005 The FreeBSD Project.
|
||||
All rights reserved.'>
|
||||
<!ENTITY email 'freebsd-questions'>
|
||||
<!ENTITY author '<a href="&base;/index.html">home</a> | <a href="&base;/mailto.html">contact</a> | <a href="&base;/copyright/index.html">legal</a> | ©right;'>
|
||||
<!ENTITY date ''>
|
||||
<!ENTITY home '<a href="&base;/index.html"><img src="&base;/gifs/home.gif"
|
||||
alt="FreeBSD Home Page" border="0" align="right" width="101" height="33"></a>'>
|
||||
<!ENTITY stylesheet '&base;/freebsd.css'>
|
||||
<!ENTITY stylesheet '&base;/layout/css/fixed.css'>
|
||||
<!ENTITY stylesheetlarge '&base;/layout/css/fixed_large.css'>
|
||||
<!ENTITY nav ''>
|
||||
|
||||
<!-- Standard headers and footers -->
|
||||
|
||||
<!ENTITY header '<head><title>&title;</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
||||
<meta name="MSSmartTagsPreventParsing" content="TRUE">
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
|
||||
<link rel="icon" href="/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" type="text/css" href="&stylesheet;"></head><body
|
||||
text="#000000" bgcolor="#FFFFFF" alink="#FFCC33"><img
|
||||
src="&base;/gifs/bar.gif" alt="Navigation Bar" width="565" height="33" border="0" usemap="#bar">
|
||||
<h1 align="left"><font color="#660000">&title;</font></h1><br clear="all">
|
||||
<link rel="shortcut icon" href="&base;/favicon.ico" type="image/x-icon">
|
||||
<link rel="icon" href="&base;/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" media="screen" href="&stylesheet;" type="text/css" title="Normal Text">
|
||||
<link rel="alternate stylesheet" media="screen" href="&stylesheetlarge;" type="text/css" title="Large Text">
|
||||
<script type="text/javascript" src="&base;/layout/js/styleswitcher.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="containerwrap">
|
||||
<div id="container">
|
||||
<span class="txtoffscreen"><a href="#content" title="Skip site navigation" accesskey="1">Skip site navigation</a> (1)</span>
|
||||
<span class="txtoffscreen"><a href="#contentwrap" title="Skip section navigation" accesskey="2">Skip section navigation</a> (2)</span>
|
||||
<div id="headercontainer">
|
||||
|
||||
<div id="header">
|
||||
<h2 class="blockhide">Header And Logo</h2>
|
||||
<div id="headerlogoleft">
|
||||
<a href="&base;" title="FreeBSD"><img src="&base;/layout/images/logo.png" width="360" height="40" alt="FreeBSD"></a>
|
||||
</div> <!-- headerlogoleft -->
|
||||
<div id="headerlogoright">
|
||||
<h2 class="blockhide">Peripheral Links</h2>
|
||||
<div id="searchnav">
|
||||
<ul id="searchnavlist">
|
||||
<li>
|
||||
Text Size: <a href="#" onkeypress="return false;" onclick="setActiveStyleSheet('Normal Text'); return false;" title="Normal Text Size">Normal</a> / <a href="#" onkeypress="return false;" onclick="setActiveStyleSheet('Large Text'); return false;" title="Large Text Size">Large</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="&base;/donations/" title="Donate">Donate</a>
|
||||
</li>
|
||||
<li class="last-child">
|
||||
<a href="&base;/mailto.html" title="Contact">Contact</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div> <!-- searchnav -->
|
||||
<div id="search">
|
||||
<form action="&base;/cgi/search.cgi" method="get">
|
||||
<div>
|
||||
<h2 class="blockhide"><label for="words">Search</label></h2>
|
||||
<input type="hidden" name="max" value="25"> <input type="hidden" name="source" value="www"><input id="words" name="words" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value='';" value="Search"> <input id="submit" name="submit" type="submit" value="Search">
|
||||
</div>
|
||||
</form>
|
||||
</div> <!-- search -->
|
||||
</div> <!-- headerlogoright -->
|
||||
|
||||
<map name="bar">
|
||||
<area shape="rect" coords="1,1,111,31" href="&base;/index.html" alt="Site Root">
|
||||
<area shape="rect" coords="112,11,196,31" href="&base;/ports/index.html" alt="Applications">
|
||||
<area shape="rect" coords="196,12,257,33" href="&base;/support.html" alt="Support">
|
||||
<area shape="rect" coords="256,12,365,33" href="&base;/docs.html" alt="Documentation">
|
||||
<area shape="rect" coords="366,13,424,32" href="&base;/commercial/commercial.html" alt="Vendors">
|
||||
<area shape="rect" coords="425,16,475,32" href="&base;/search/search.html" alt="Search">
|
||||
<area shape="rect" coords="477,16,516,33" href="&base;/search/index-site.html" alt="Site Index">
|
||||
<area shape="rect" coords="516,15,562,33" href="&base;/index.html" alt="Site Root">
|
||||
<area shape="rect" href="&base;/index.html" coords="0,0,564,32" alt="Site Root">
|
||||
</map>'>
|
||||
</div> <!-- header -->
|
||||
|
||||
<!ENTITY footer '<HR NOSHADE>
|
||||
<address>&author;<br>&date;</address>'>
|
||||
<h2 class="blockhide">Site Navigation</h2>
|
||||
<div id="topnav">
|
||||
<ul id="topnavlist">
|
||||
<li>
|
||||
<a href="&base;/" title="Home">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="&base;/about.html" title="About">About</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="&base;/where.html" title="Get FreeBSD">Get FreeBSD</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="&base;/docs.html" title="Documentation">Documentation</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="&base;/community.html" title="Community">Community</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="&base;/projects/index.html" title="Developers">Developers</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="&base;/support.html" title="Support">Support</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div> <!-- topnav -->
|
||||
</div> <!-- headercontainer -->
|
||||
|
||||
<!-- macro for webbuild paper -->
|
||||
<!ENTITY webbuild '
|
||||
<div id="content">
|
||||
<div id="sidewrap">
|
||||
&nav;
|
||||
</div> <!-- sidewrap -->
|
||||
|
||||
<div id="contentwrap">
|
||||
|
||||
<h1>&title;</h1>'>
|
||||
|
||||
<!ENTITY footer '</div> <!-- contentwrap -->
|
||||
<br class="clearboth">
|
||||
|
||||
</div> <!-- content -->
|
||||
<div id="footer">
|
||||
©right;<br>
|
||||
&date;
|
||||
</div> <!-- footer -->
|
||||
|
||||
</div> <!-- container -->
|
||||
</div> <!-- containerwrap -->'>
|
||||
|
||||
<!-- macro for webbuild paper -->
|
||||
<!ENTITY webbuild '
|
||||
<p>This document describes how to build and update
|
||||
the FreeBSD Web pages from the CVS repository by hand.</p>'>
|
||||
|
||||
<!--
|
||||
<!--
|
||||
Local Variables:
|
||||
mode: sgml
|
||||
sgml-indent-data: t
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- $FreeBSD: www/share/sgml/includes.header.xsl,v 1.3 2005/01/01 12:01:53 simon Exp $ -->
|
||||
<!-- $FreeBSD: www/share/sgml/includes.header.xsl,v 1.4 2005/02/12 13:06:38 ceri Exp $ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
|||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="copyright">
|
||||
<a href="{$base}/copyright/index.html">Copyright</a> © 1995-2005 the FreeBSD Project. All rights reserved.
|
||||
<a href="{$base}/copyright/">Legal Notices</a> | © 1995-2005 The FreeBSD Project. All rights reserved.
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="email" select="'freebsd-questions'"/>
|
||||
|
@ -30,54 +30,209 @@
|
|||
<a href="{$base}/index.html"><img src="{$base}/gifs/home.gif" alt="FreeBSD Home Page" border="0" align="right" width="101" height="33"/></a>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="section" select="''"/>
|
||||
|
||||
<xsl:variable name="header1">
|
||||
<head>
|
||||
<title><xsl:value-of select="$title"/></title>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
|
||||
<meta name="MSSmartTagsPreventParsing" content="TRUE"/>
|
||||
</head>
|
||||
<head><title><xsl:value-of select="$title"/></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
||||
<meta name="MSSmartTagsPreventParsing" content="TRUE" />
|
||||
<link rel="shortcut icon" href="{$base}/favicon.ico" type="image/x-icon" />
|
||||
<link rel="icon" href="{$base}/favicon.ico" type="image/x-icon" />
|
||||
<link rel="stylesheet" media="screen" href="{$base}/layout/css/fixed.css" type="text/css" title="Normal Text" />
|
||||
<link rel="alternate stylesheet" media="screen" href="{$base}/layout/css/fixed_large.css" type="text/css" title="Large Text" />
|
||||
<script type="text/javascript" src="{$base}/layout/js/styleswitcher.js"></script>
|
||||
</head>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:attribute-set name="att.body">
|
||||
<xsl:attribute name="text">#000000</xsl:attribute>
|
||||
<xsl:attribute name="bgcolor">#FFFFFF</xsl:attribute>
|
||||
<xsl:attribute name="alink">#FFCC33</xsl:attribute>
|
||||
</xsl:attribute-set>
|
||||
|
||||
|
||||
<xsl:variable name="header2">
|
||||
<img src="{$base}/gifs/bar.gif" alt="Navigation Bar" width="565"
|
||||
height="33" border="0" usemap="#bar"/>
|
||||
|
||||
<h1 align="left"><font color="#660000"><xsl:value-of select="$title"/></font></h1>
|
||||
|
||||
<br clear="all"/>
|
||||
|
||||
<map name="bar">
|
||||
<area shape="rect" coords="1,1,111,31"
|
||||
href="{$base}/index.html" alt="Site Root"/>
|
||||
<area shape="rect" coords="112,11,196,31"
|
||||
href="{$base}/ports/index.html" alt="Applications"/>
|
||||
<area shape="rect" coords="196,12,257,33"
|
||||
href="{$base}/support.html" alt="Support"/>
|
||||
<area shape="rect" coords="256,12,365,33"
|
||||
href="{$base}/docs.html" alt="Documentation"/>
|
||||
<area shape="rect" coords="366,13,424,32"
|
||||
href="{$base}/commercial/commercial.html" alt="Vendors"/>
|
||||
<area shape="rect" coords="425,16,475,32"
|
||||
href="{$base}/search/search.html" alt="Search"/>
|
||||
<area shape="rect" coords="477,16,516,33"
|
||||
href="{$base}/search/index-site.html" alt="Site Index"/>
|
||||
<area shape="rect" coords="516,15,562,33"
|
||||
href="{$base}/index.html" alt="Site Root"/>
|
||||
<area shape="rect" coords="0,0,564,32"
|
||||
href="{$base}/index.html" alt="Site Root"/>
|
||||
</map>
|
||||
<span class="txtoffscreen"><a href="#content" title="Skip site navigation" accesskey="1">Skip site navigation</a> (1)</span>
|
||||
<span class="txtoffscreen"><a href="#contentwrap" title="Skip section navigation" accesskey="2">Skip section navigation</a> (2)</span>
|
||||
<div id="headercontainer">
|
||||
|
||||
<div id="header">
|
||||
<h2 class="blockhide">Header And Logo</h2>
|
||||
<div id="headerlogoleft">
|
||||
<a href="{$base}" title="FreeBSD"><img src="{$base}/layout/images/logo.png" width="360" height="40" alt="FreeBSD" /></a>
|
||||
</div> <!-- headerlogoleft -->
|
||||
<div id="headerlogoright">
|
||||
<h2 class="blockhide">Peripheral Links</h2>
|
||||
<div id="searchnav">
|
||||
<ul id="searchnavlist">
|
||||
<li>
|
||||
Text Size: <a href="#" onkeypress="return false;" onclick="setActiveStyleSheet('Normal Text'); return false;" title="Normal Text Size">Normal</a> / <a href="#" onkeypress="return false;" onclick="setActiveStyleSheet('Large Text'); return false;" title="Large Text Size">Large</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$base}/donations/" title="Donate">Donate</a>
|
||||
</li>
|
||||
<li class="last-child">
|
||||
<a href="{$base}/mailto.html" title="Contact">Contact</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div> <!-- searchnav -->
|
||||
<div id="search">
|
||||
<form action="{$base}/cgi/search.cgi" method="get">
|
||||
<div>
|
||||
<h2 class="blockhide"><label for="words">Search</label></h2>
|
||||
<input type="hidden" name="max" value="25" /> <input type="hidden" name="source" value="www" /><input id="words" name="words" type="text" size="20" maxlength="255" onfocus="if( this.value==this.defaultValue ) this.value='';" value="Search" /> <input id="submit" name="submit" type="submit" value="Search" />
|
||||
</div>
|
||||
</form>
|
||||
</div> <!-- search -->
|
||||
</div> <!-- headerlogoright -->
|
||||
|
||||
</div> <!-- header -->
|
||||
|
||||
<h2 class="blockhide">Site Navigation</h2>
|
||||
<div id="topnav">
|
||||
<ul id="topnavlist">
|
||||
<li>
|
||||
<a href="{$base}/" title="Home">Home</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$base}/about.html" title="About">About</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$base}/where.html" title="Get FreeBSD">Get FreeBSD</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$base}/docs.html" title="Documentation">Documentation</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$base}/community.html" title="Community">Community</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$base}/projects/index.html" title="Developers">Developers</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{$base}/support.html" title="Support">Support</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div> <!-- topnav -->
|
||||
</div> <!-- headercontainer -->
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="header3">
|
||||
<h1><xsl:value-of select="$title"/></h1>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="sidenav">
|
||||
<div id="sidewrap">
|
||||
|
||||
<div id="sidenav">
|
||||
<h2 class="blockhide">Section Navigation</h2>
|
||||
|
||||
<xsl:if test="$section = 'about'" >
|
||||
<ul>
|
||||
<li><a href="{$base}/about.html">About</a></li>
|
||||
<li><a href="{$base}/features.html">Features</a></li>
|
||||
<li><a href="{$base}/applications.html">Applications</a></li>
|
||||
<li><a href="{$base}/internet.html">Internetworking</a></li>
|
||||
<li><a href="{$base}/advocacy/">Advocacy</a></li>
|
||||
<li><a href="{$base}/marketing/">Marketing</a></li>
|
||||
<li><a href="{$base}/news/newsflash.html">News</a></li>
|
||||
<li><a href="{$base}/events/events.html">Events</a></li>
|
||||
<li><a href="{$base}/news/press.html">Press</a></li>
|
||||
<li><a href="{$base}/art.html">Artwork</a></li>
|
||||
<li><a href="{$base}/donations/">Donations</a></li>
|
||||
<li><a href="{$base}/copyright/">Legal Notices</a></li>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$section = 'community'" >
|
||||
<ul>
|
||||
<li><a href="{$base}/community.html">Community</a></li>
|
||||
<li><a href="{$base}/community/mailinglists.html">Mailing Lists</a></li>
|
||||
<li><a href="{$base}/community/irc.html">IRC</a></li>
|
||||
<li><a href="{$base}/community/newsgroups.html">Newsgroups</a></li>
|
||||
<li><a href="{$base}/usergroups.html">User Groups</a></li>
|
||||
<li><a href="{$base}/community/webresources.html">Web Resources</a></li>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$section = 'developers'" >
|
||||
<ul>
|
||||
<li><a href="{$base}/projects/index.html">Developers</a></li>
|
||||
<li><a href="{$base}/doc/en_US.ISO8859-1/books/developers-handbook">Developer's Handbook</a></li>
|
||||
<li><a href="{$base}/doc/en_US.ISO8859-1/books/porters-handbook">Porter's Handbook</a></li>
|
||||
<li><a href="{$base}/developers/cvs.html">CVS Repository</a></li>
|
||||
<li><a href="{$base}/releng/index.html">Release Engineering</a></li>
|
||||
<li><a href="{$base}/platforms/">Platforms</a>
|
||||
<ul>
|
||||
<li><a href="{$base}/platforms/alpha.html">alpha</a></li>
|
||||
<li><a href="{$base}/platforms/amd64.html">amd64</a></li>
|
||||
<li><a href="{$base}/platforms/i386.html">i386</a></li>
|
||||
<li><a href="{$base}/platforms/ia64.html">ia64</a></li>
|
||||
<li><a href="{$base}/platforms/pc98.html">pc98</a></li>
|
||||
<li><a href="{$base}/platforms/sparc.html">sparc64</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="{$base}/doc/en_US.ISO8859-1/articles/contributing/index.html">Contributing</a></li>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$section = 'docs'" >
|
||||
<ul>
|
||||
<li><a href="{$base}/docs.html">Documentation</a></li>
|
||||
<li><a href="{$base}/doc/en_US.ISO8859-1/books/faq/">FAQ</a></li>
|
||||
<li><a href="{$base}/doc/en_US.ISO8859-1/books/handbook/">Handbook</a></li>
|
||||
<li><a href="{$base}/docs/man.html">Manual Pages</a>
|
||||
<ul>
|
||||
<li><a href="{$base}/cgi/man.cgi">Man Online</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="{$base}/docs/books.html">Books and Articles Online</a></li>
|
||||
<li><a href="{$base}/publish.html">Publications</a></li>
|
||||
<li><a href="{$base}/docs/webresources.html">Web Resources</a></li>
|
||||
<li><a href="{$base}/projects/newbies.html">For Newbies</a></li>
|
||||
<li><a href="{$base}/docproj/">Documentation Project</a></li>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$section = 'download'" >
|
||||
<ul>
|
||||
<li><a href="{$base}/where.html">Get FreeBSD</a></li>
|
||||
<li><a href="{$base}/releases/">Release Information</a>
|
||||
<ul>
|
||||
<li><a href="{$u.rel.announce}">Production Release: <xsl:value-of select="$rel.current"/></a></li>
|
||||
<li><a href="{$u.rel2.announce}">Production (Legacy) Release: <xsl:value-of select="$rel2.current"/></a></li>
|
||||
<li><a href="{$base}/snapshots/">Snapshot Releases</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="{$base}/ports/">Ported Applications</a></li>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$section = 'support'" >
|
||||
<ul>
|
||||
<li><a href="{$base}/support.html">Support</a></li>
|
||||
<li><a href="{$base}/commercial/">Vendors</a>
|
||||
<ul>
|
||||
<li><a href="{$base}/commercial/software_bycat.html">Software</a></li>
|
||||
<li><a href="{$base}/commercial/hardware.html">Hardware</a></li>
|
||||
<li><a href="{$base}/commercial/consult_bycat.html">Consulting</a></li>
|
||||
<li><a href="{$base}/commercial/isp.html">Internet Service Providers</a></li>
|
||||
<li><a href="{$base}/commercial/misc.html">Miscellaneous</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="{$base}/security/">Security Information</a></li>
|
||||
<li><a href="{$base}/support/bugreports.html">Bug Reports</a>
|
||||
<ul>
|
||||
<li><a href="{$base}/send-pr.html">Submit a Problem Report</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="{$base}/support/webresources.html">Web Resources</a></li>
|
||||
</ul>
|
||||
</xsl:if>
|
||||
|
||||
</div> <!-- sidenav -->
|
||||
|
||||
</div> <!-- sidewrap -->
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="footer">
|
||||
<hr noshade="noshade"/>
|
||||
<address><xsl:copy-of select="$author"/><br/>
|
||||
<xsl:copy-of select="$date"/></address>
|
||||
<div id="footer">
|
||||
<xsl:copy-of select="$copyright"/><br />
|
||||
<xsl:copy-of select="$date"/>
|
||||
</div> <!-- footer -->
|
||||
</xsl:variable>
|
||||
</xsl:stylesheet>
|
||||
|
||||
</xsl:stylesheet>
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
|
||||
<!-- $FreeBSD: www/share/sgml/includes.misc.xsl,v 1.23 2005/09/18 06:25:01 hrs Exp $ -->
|
||||
<!-- $FreeBSD: www/share/sgml/includes.misc.xsl,v 1.24 2005/09/30 18:12:58 hrs Exp $ -->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
|
||||
|
@ -24,7 +24,7 @@
|
|||
|
||||
<!-- default format for date string -->
|
||||
<xsl:param name="param-l10n-date-format-YMD"
|
||||
select="'%D %M, %Y'" />
|
||||
select="'%Y-%M-%D'" />
|
||||
<xsl:param name="param-l10n-date-format-YM"
|
||||
select="'%M %Y'" />
|
||||
<xsl:param name="param-l10n-date-format-MD"
|
||||
|
@ -50,13 +50,14 @@
|
|||
rdf-security-advisories-title security/security-rdf.xsl (for l10n)
|
||||
rdf-security-advisories-items security/security-rdf.xsl
|
||||
|
||||
html-index-advisories-items index.xsl
|
||||
html-index-advisories-items-lastmodified index.xsl (for i10n)
|
||||
html-index-news-project-items index.xsl
|
||||
html-index-news-project-items-lastmodified index.xsl (for i10n)
|
||||
html-index-news-press-items index.xsl
|
||||
html-index-news-press-items-lastmodified index.xsl (for i10n)
|
||||
html-index-mirrors-options-list index.xsl
|
||||
html-index-advisories-items index.xsl
|
||||
html-index-advisories-items-lastmodified index.xsl (for i10n)
|
||||
html-index-news-project-items index.xsl
|
||||
html-index-news-project-items-lastmodified index.xsl (for i10n)
|
||||
html-index-news-press-items index.xsl
|
||||
html-index-news-press-items-lastmodified index.xsl (for i10n)
|
||||
html-index-events-items index.xsl
|
||||
html-index-mirrors-options-list index.xsl
|
||||
|
||||
misc-format-date-string generic
|
||||
-->
|
||||
|
@ -600,8 +601,14 @@
|
|||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$type = 'advisory'">
|
||||
<xsl:for-each select="document($advisories.xml)/descendant::advisory[position() <= 10]">
|
||||
<xsl:value-of select="$leadingmark" />
|
||||
<xsl:for-each select="document($advisories.xml)/descendant::advisory[position() <= 3]">
|
||||
<xsl:param name="year" select="../../../name" />
|
||||
<xsl:param name="month" select="../../name" />
|
||||
<xsl:param name="day" select="../name" />
|
||||
<p>
|
||||
<span class="txtdate">
|
||||
<xsl:value-of select='format-number($year, "####")' />-<xsl:value-of select='format-number($month, "00")' />-<xsl:value-of select='format-number($day, "00")' />
|
||||
</span><br />
|
||||
<xsl:choose>
|
||||
<xsl:when test="@omithref = 'yes'">
|
||||
<xsl:value-of select="name"/>
|
||||
|
@ -613,12 +620,18 @@
|
|||
<xsl:value-of select="name"/></a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<br/>
|
||||
</p>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
<xsl:when test="$type = 'notice'">
|
||||
<xsl:for-each select="document($advisories.xml)/descendant::notice[position() <= 10]">
|
||||
<xsl:value-of select="$leadingmark" />
|
||||
<xsl:for-each select="document($advisories.xml)/descendant::notice[position() <= 3]">
|
||||
<xsl:param name="year" select="../../../name" />
|
||||
<xsl:param name="month" select="../../name" />
|
||||
<xsl:param name="day" select="../name" />
|
||||
<p>
|
||||
<span class="txtdate">
|
||||
<xsl:value-of select='format-number($year, "####")' />-<xsl:value-of select='format-number($month, "00")' />-<xsl:value-of select='format-number($day, "00")' />
|
||||
</span><br />
|
||||
<xsl:choose>
|
||||
<xsl:when test="@omithref = 'yes'">
|
||||
<xsl:value-of select="name"/>
|
||||
|
@ -630,7 +643,7 @@
|
|||
<xsl:value-of select="name"/></a>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<br/>
|
||||
</p>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
|
@ -742,7 +755,11 @@
|
|||
<xsl:for-each select="$localizeditems/event">
|
||||
<xsl:param name="anchor-position" select="position()" />
|
||||
|
||||
<xsl:value-of select="$leadingmark" /><a>
|
||||
<p>
|
||||
<span class="txtdate">
|
||||
<xsl:value-of select='format-number($year, "####")' />-<xsl:value-of select='format-number($month, "00")' />-<xsl:value-of select='format-number($day, "00")' />
|
||||
</span><br />
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:text>news/newsflash.html#</xsl:text>
|
||||
<xsl:call-template name="html-news-generate-anchor">
|
||||
|
@ -763,6 +780,7 @@
|
|||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
</p>
|
||||
</xsl:for-each>
|
||||
</xsl:when>
|
||||
|
||||
|
@ -770,7 +788,11 @@
|
|||
<xsl:for-each select="event">
|
||||
<xsl:param name="anchor-position" select="position()" />
|
||||
|
||||
<xsl:value-of select="$leadingmark" /><a>
|
||||
<p>
|
||||
<span class="txtdate">
|
||||
<xsl:value-of select='format-number($year, "####")' />-<xsl:value-of select='format-number($month, "00")' />-<xsl:value-of select='format-number($day, "00")' />
|
||||
</span><br />
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:text>news/newsflash.html#</xsl:text>
|
||||
<xsl:call-template name="html-news-generate-anchor">
|
||||
|
@ -791,6 +813,7 @@
|
|||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
</p>
|
||||
</xsl:for-each>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
@ -822,6 +845,7 @@
|
|||
<xsl:for-each select="document($news.press.xml-master)/descendant::story[position() <= 5]">
|
||||
<xsl:param name="year" select="../../name" />
|
||||
<xsl:param name="month" select="../name" />
|
||||
<xsl:param name="day" select="../name" />
|
||||
<xsl:param name="url" select="url" />
|
||||
<xsl:param name="site-url" select="site-url" />
|
||||
|
||||
|
@ -839,8 +863,11 @@
|
|||
//descendant::year[name = $year]
|
||||
/month[name = $month]
|
||||
/story[url = $url]" />
|
||||
|
||||
<xsl:value-of select="$leadingmark" />
|
||||
|
||||
<p>
|
||||
<span class="txtdate">
|
||||
<xsl:value-of select='format-number($year, "####")' />-<xsl:value-of select='format-number($month, "00")' />-<xsl:value-of select='format-number($day, "00")' />
|
||||
</span><br />
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:text>news/press.html#</xsl:text>
|
||||
|
@ -861,9 +888,8 @@
|
|||
<xsl:value-of select="name"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</a>
|
||||
|
||||
<br/>
|
||||
</a></p>
|
||||
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
|
@ -928,6 +954,47 @@
|
|||
</xsl:attribute>
|
||||
<xsl:value-of select="@name"/></a><br/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- template: "html-index-events-items"
|
||||
pulls in the 5 most recent events items -->
|
||||
|
||||
<xsl:template name="html-index-events-items">
|
||||
<xsl:param name="events.xml-master" select="'none'" />
|
||||
<xsl:param name="events.xml" select="''" />
|
||||
<xsl:param name="curdate.xml" select="''" />
|
||||
<xsl:variable name="curdate" select="document($curdate.xml)//curdate"/>
|
||||
|
||||
<xsl:for-each select="document($events.xml-master)/descendant::event[position() < 5
|
||||
and ((number(enddate/year) > number($curdate/year)) or
|
||||
(number(enddate/year) = number($curdate/year) and
|
||||
number(enddate/month) > number($curdate/month)) or
|
||||
(number(enddate/year) = number($curdate/year) and
|
||||
number(enddate/month) = number($curdate/month) and
|
||||
enddate/day >= $curdate/day))]">
|
||||
<xsl:sort select="startdate/year" order="ascending"/>
|
||||
<xsl:sort select="format-number(startdate/month, '00')" order="ascending"/>
|
||||
<xsl:sort select="format-number(startdate/day, '00')" order="ascending"/>
|
||||
|
||||
<p>
|
||||
<span class="txtdate">
|
||||
<xsl:value-of select='format-number(startdate/year, "####")' />-<xsl:value-of select='format-number(startdate/month, "00")' />-<xsl:value-of select='format-number(startdate/day, "00")' /> - <xsl:value-of select='format-number(enddate/year, "####")' />-<xsl:value-of select='format-number(enddate/month, "00")' />-<xsl:value-of select='format-number(enddate/day, "00")' />
|
||||
</span><br />
|
||||
<a>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$events.xml = 'none'"><xsl:value-of select="$enbase"/>/</xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="$base"/>/</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:text>events/#event:</xsl:text><xsl:value-of select='@id' />
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:value-of select="name"/>
|
||||
|
||||
<br />
|
||||
(<xsl:value-of select='location/city' />, <xsl:value-of select='location/country' />)
|
||||
</a></p>
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
||||
<!-- template: "html-index-mirrors-options-list"
|
||||
generates mirror sites list in index.html -->
|
||||
|
|
Loading…
Reference in a new issue