Include a "Latest update" line with, in the case of "Project News", the
month, day and year of the newest story, and in the case of "FreeBSD Press", the month and year. Reviewed by: nik
This commit is contained in:
parent
964c6c4445
commit
b1d28dadb9
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=10775
1 changed files with 19 additions and 2 deletions
21
en/index.xsl
21
en/index.xsl
|
@ -1,4 +1,4 @@
|
||||||
<!-- $FreeBSD: www/en/index.xsl,v 1.5 2001/08/10 10:36:18 nik Exp $ -->
|
<!-- $FreeBSD: www/en/index.xsl,v 1.6 2001/08/23 14:03:49 kuriyama Exp $ -->
|
||||||
|
|
||||||
<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">
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@
|
||||||
<xsl:import href="news/includes.xsl"/>
|
<xsl:import href="news/includes.xsl"/>
|
||||||
|
|
||||||
<xsl:variable name="base" select="'.'"/>
|
<xsl:variable name="base" select="'.'"/>
|
||||||
<xsl:variable name="date" select="'$FreeBSD: www/en/index.xsl,v 1.5 2001/08/10 10:36:18 nik Exp $'"/>
|
<xsl:variable name="date" select="'$FreeBSD: www/en/index.xsl,v 1.6 2001/08/23 14:03:49 kuriyama Exp $'"/>
|
||||||
<xsl:variable name="title" select="'The FreeBSD Project'"/>
|
<xsl:variable name="title" select="'The FreeBSD Project'"/>
|
||||||
|
|
||||||
<xsl:output type="html" encoding="iso-8859-1"
|
<xsl:output type="html" encoding="iso-8859-1"
|
||||||
|
@ -340,6 +340,16 @@
|
||||||
|
|
||||||
<p><font size="+1" color="#990000"><b>Project News</b></font><br/>
|
<p><font size="+1" color="#990000"><b>Project News</b></font><br/>
|
||||||
<font size="-1">
|
<font size="-1">
|
||||||
|
Latest update:
|
||||||
|
<xsl:value-of
|
||||||
|
select="descendant::month[position() = 1]/name"/>
|
||||||
|
<xsl:text> </xsl:text>
|
||||||
|
<xsl:value-of
|
||||||
|
select="descendant::day[position() = 1]/name"/>,
|
||||||
|
<xsl:text> </xsl:text>
|
||||||
|
<xsl:value-of
|
||||||
|
select="descendant::year[position() = 1]/name"/>
|
||||||
|
<br/>
|
||||||
<!-- Pull in the 10 most recent news items -->
|
<!-- Pull in the 10 most recent news items -->
|
||||||
<xsl:for-each select="descendant::event[position() <= 10]">
|
<xsl:for-each select="descendant::event[position() <= 10]">
|
||||||
· <a>
|
· <a>
|
||||||
|
@ -362,6 +372,13 @@
|
||||||
<p><font size="+1" color="#990000"><b>FreeBSD Press</b></font><br/>
|
<p><font size="+1" color="#990000"><b>FreeBSD Press</b></font><br/>
|
||||||
|
|
||||||
<font size="-1">
|
<font size="-1">
|
||||||
|
Latest update:
|
||||||
|
<xsl:value-of
|
||||||
|
select="document('news/press.xml')/descendant::month[position() = 1]/name"/>
|
||||||
|
<xsl:text> </xsl:text>
|
||||||
|
<xsl:value-of
|
||||||
|
select="document('news/press.xml')/descendant::year[position() = 1]/name"/>
|
||||||
|
<br/>
|
||||||
<!-- Pull in the 10 most recent press items -->
|
<!-- Pull in the 10 most recent press items -->
|
||||||
<xsl:for-each select="document('news/press.xml')/descendant::story[position() < 10]">
|
<xsl:for-each select="document('news/press.xml')/descendant::story[position() < 10]">
|
||||||
· <a>
|
· <a>
|
||||||
|
|
Loading…
Reference in a new issue