News in XML!

svn path=/trunk/; revision=3023
This commit is contained in:
jonas 2003-01-26 17:26:55 +00:00
parent c0564ce704
commit f6d50b7efb
4 changed files with 78 additions and 0 deletions

23
news/2001/news.en.xml Normal file
View File

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
<newsset>
<news date="2001-04-24">
<title>Free Software Foundation Europe finishes founding process</title>
<link>http://mailman.fsfeurope.org/pipermail/press-release/2001q2/000003.html</link>
</news>
<news date="2001-12-17">
<title>&quot;Freedom, Quality and Fraternity&quot; OLinux interview iwth Georg C. F. Greve</title>
<body>&quot;[...] Keep on spreading the word. What we do today will
influence the future of mankind for the next 200 years to come -
we have to make sure that people understand the issues of
Free Software and the importance of freedom. [...]
Freedom counts! &quot;
</body>
<link>/news/article2001-12-17-01.html</link>
</news>
<news date="2001-04-24">
<title>First general assembly of the Free Software Foundation Europe</title>
<link>http://mailman.fsfeurope.org/pipermail/press-release/2001q2/000002.html</link>
</news>
</newsset>

11
news/2002/news.en.xml Normal file
View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
<newsset>
<news date="2002-12-18">
<title>FSF Europe calls for participation</title>
<body>Press-release of the FSF Europe: "The Free Software Foundation Europe (FSFE) invites all companies, organizations and research institutes interested in Free Software projects funded by the European Commission to join their effort."
</body>
<link>http://mailman.fsfeurope.org/pipermail/press-release/2002q4/000047.html</link>
</news>
</newsset>

1
news/news.sources Normal file
View File

@ -0,0 +1 @@
news/*/news:global

43
news/news.xsl Normal file
View File

@ -0,0 +1,43 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"
encoding="ISO-8859-1"
indent="yes"
/>
<xsl:template match="/">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
<xsl:template match="/html/body">
<body>
<!-- <xsl:apply-templates /> -->
<xsl:for-each select="/html/set/news">
<xsl:sort select="@date" order="descending" />
<p>
<b>(<xsl:value-of select="@date" />) <xsl:value-of select="title" /></b><br />
<xsl:value-of select="body" />
<xsl:variable name="link"><xsl:value-of select="link" /></xsl:variable>
<xsl:if test="$link!=''">
<br /><a href="$link">--></a>
</xsl:if>
</p>
</xsl:for-each>
</body>
</xsl:template>
<xsl:template match="@*|node()" priority="-1">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="set">
</xsl:template>
</xsl:stylesheet>