blob: 4255c678cbe792d61b21154a2b7eece3f514ee34 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE xsl:stylesheet PUBLIC "-//FreeBSD//DTD FreeBSD XSLT 1.0 DTD//EN"
"http://www.FreeBSD.org/XML/www/share/sgml/xslt10-freebsd.dtd" [
<!ENTITY base "..">
<!ENTITY rsslink "&base;/java/rss.xml">
<!ENTITY title "FreeBSD &java; Project News Flash">
<!ENTITY rsstitle "FreeBSD Java Project News">
]>
<!-- $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/www/lang/share/sgml/libcommon.xsl"/>
<xsl:import href="http://www.FreeBSD.org/XML/www/share/sgml/xhtml.xsl"/>
<xsl:variable name="title">&title;</xsl:variable>
<xsl:variable name="rsstitle">&title;</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="&base;/gifs/news.jpg" align="right" border="0" width="193"
height="144" alt="FreeBSD Java News"/>
<xsl:apply-templates select="/news/descendant::month"/>
<xsl:for-each select="/news">
<xsl:call-template
name="html-news-list-newsflash-homelink" />
</xsl:for-each>
</div> <!-- contentwrap -->
<br class="clearboth" />
</xsl:template>
<!-- Everything that follows are templates for the rest of the content -->
<xsl:template match="month">
<h2><xsl:value-of select="name"/>
<xsl:text> </xsl:text>
<xsl:value-of select="ancestor::year/name"/></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::month/name"/>
<xsl:text> </xsl:text>
<xsl:value-of select="ancestor::day/name"/>,
<xsl:value-of select="ancestor::year/name"/>:</b><xsl:text> </xsl:text>
<xsl:value-of select="title"/>
</p>
<xsl:apply-templates select="p" mode="copy.html"/>
</li>
</xsl:template>
</xsl:stylesheet>
|