Update of /cvsroot/super-tux/htdocs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25310
Modified Files:
default.xsl news.xml
Log Message:
Modified news update a bit.
Updated xsl stylesheet to only display ten news items.
Index: news.xml
===================================================================
RCS file: /cvsroot/super-tux/htdocs/news.xml,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -d -r1.14 -r1.15
--- news.xml 3 Apr 2005 10:30:17 -0000 1.14
+++ news.xml 3 Apr 2005 17:31:45 -0000 1.15
@@ -5,8 +5,10 @@
<item date="3. April 2005">
After a rather long break where everyone has been busy with other
things, we are finally back on SuperTux. The main goals of milestone 2
- have been discussed in an IRC meeting yesterday; the log is available
- on the SuperTux wiki page at <a href="http://netpanzer.berlios.de/supertux/index.php/">http://netpanzer.berlios.de/supertux/index.php</a>.
+ were discussed in an IRC meeting yesterday; the
+ <a href="http://netpanzer.berlios.de/supertux/index.php/MeetingLog">meeting log</a>
+ is available on the
+ <a href="http://netpanzer.berlios.de/supertux/index.php/">SuperTux wiki</a>.
</item>
<item date="2. December 2004">
It looks like we have our first fansite. You can find it at
Index: default.xsl
===================================================================
RCS file: /cvsroot/super-tux/htdocs/default.xsl,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- default.xsl 5 May 2004 15:33:33 -0000 1.10
+++ default.xsl 3 Apr 2005 17:31:44 -0000 1.11
@@ -112,11 +112,13 @@
</xsl:template>
<xsl:template match="news">
- <xsl:apply-templates />
+ <xsl:apply-templates select="item"/>
</xsl:template>
<xsl:template match="news/item">
- <p style="padding: 0em;"><strong><xsl:value-of select="@date" /></strong> - <xsl:apply-templates /></p>
+ <xsl:if test="position() <= 10">
+ <p style="padding: 0em;"><strong><xsl:value-of select="@date" /></strong> - <xsl:apply-templates /></p>
+ </xsl:if>
</xsl:template>
<xsl:template match="submenu">
|