102 lines
3 KiB
XML
102 lines
3 KiB
XML
<?xml version="1.0" encoding="euc-jp" ?>
|
||
<!DOCTYPE xsl:stylesheet PUBLIC "-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD//EN"
|
||
"http://www.FreeBSD.org/XML/www/share/xml/xslt10-freebsd.dtd" [
|
||
<!ENTITY rsslink "&base;/java/rss.xml">
|
||
<!ENTITY title "FreeBSD &java; Project: Newsflash">
|
||
<!ENTITY rsstitle "FreeBSD Java Project News">
|
||
]>
|
||
|
||
<!-- $FreeBSD$ -->
|
||
<!-- The FreeBSD Japanese Documentation Project -->
|
||
<!-- Original revision: 1.2 -->
|
||
|
||
|
||
<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/www/lang/share/xml/libcommon.xsl"/>
|
||
<xsl:import href="http://www.FreeBSD.org/XML/www/share/xml/xhtml.xsl"/>
|
||
|
||
<xsl:variable name="title">&title;</xsl:variable>
|
||
|
||
<xsl:variable name="rsstitle">&rsstitle;</xsl:variable>
|
||
|
||
<xsl:variable name="rsslink">&rsslink;</xsl:variable>
|
||
|
||
<xsl:template name="process.content">
|
||
<div id="sidewrap">
|
||
&nav.developers;
|
||
<div id="feedlinks">
|
||
<ul>
|
||
<li>
|
||
<a href="&rsslink;" title="&rsstitle;">
|
||
RSS 2.0 Feed
|
||
</a>
|
||
</li>
|
||
</ul>
|
||
</div> <!-- FEEDLINKS -->
|
||
</div> <!-- SIDEWRAP -->
|
||
|
||
<div id="contentwrap">
|
||
<h1>&title;</h1>
|
||
|
||
<img src="&enbase;/gifs/news.jpg" align="right" border="0" width="193"
|
||
height="144" alt="FreeBSD Java News"/>
|
||
|
||
<xsl:apply-templates select="events/descendant::month"/>
|
||
|
||
<xsl:for-each select="/events">
|
||
<xsl:call-template
|
||
name="html-news-list-newsflash-homelink" />
|
||
</xsl:for-each>
|
||
|
||
</div> <!-- contentwrap -->
|
||
</xsl:template>
|
||
|
||
<!-- Everything that follows are templates for the rest of the content -->
|
||
|
||
<xsl:template match="month">
|
||
<h2>
|
||
<xsl:value-of select="ancestor::year/name"/>
|
||
<xsl:text> ǯ </xsl:text>
|
||
<xsl:call-template name="generate-month-num">
|
||
<xsl:with-param name="month">
|
||
<xsl:value-of select="name"/>
|
||
</xsl:with-param>
|
||
</xsl:call-template>
|
||
<xsl:text> <20><></xsl:text></h2>
|
||
|
||
<ul>
|
||
<xsl:apply-templates select="descendant::day"/>
|
||
</ul>
|
||
</xsl:template>
|
||
|
||
<xsl:template match="day">
|
||
<xsl:apply-templates select="event"/>
|
||
</xsl:template>
|
||
|
||
<xsl:template match="event">
|
||
<li><p><a>
|
||
<xsl:attribute name="name">
|
||
<xsl:call-template name="generate-event-anchor"/>
|
||
</xsl:attribute>
|
||
</a>
|
||
|
||
<b><xsl:value-of select="ancestor::year/name"/>
|
||
<xsl:text> ǯ </xsl:text>
|
||
<xsl:call-template name="generate-month-num">
|
||
<xsl:with-param name="month">
|
||
<xsl:value-of select="ancestor::month/name"/>
|
||
</xsl:with-param>
|
||
</xsl:call-template>
|
||
<xsl:text> <20><> </xsl:text>
|
||
<xsl:value-of select="ancestor::day/name"/> <20><>:</b><xsl:text> </xsl:text>
|
||
<xsl:value-of select="title"/>
|
||
</p>
|
||
<xsl:copy-of select="p"/>
|
||
</li>
|
||
</xsl:template>
|
||
|
||
<xsl:template match="date"/> <!-- Deliberately left blank -->
|
||
</xsl:stylesheet>
|