chaosupdates.xml von anderer Stelle

git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@2231 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
astro 2009-11-13 22:44:05 +00:00
parent 53814120f3
commit 100f6aec4e
2 changed files with 9 additions and 6 deletions

View File

@ -39,7 +39,7 @@ XML_CATALOG:=dtd/catalog.xml
# Navigationsleiste:
NAVIGATION=content/navigation.xml
# Chaosupdates:
WWW_CCC_DE_UPDATES=chaosupdates.rdf
WWW_CCC_DE_UPDATES=chaosupdates.xml
# Calendar summary::
CALENDAR_SUMMARY=calendar-summary.xml
@ -197,9 +197,12 @@ build/datenspuren/news-atom.xml : PFLAGS+=--stringparam prefix ds09-
build/datenspuren/news-atom.xml : VFLAGS_OUT=$(VFLAGS) --relaxng xsd/atom.rng
### Die neuesten Chaosupdates holen ###
$(WWW_CCC_DE_UPDATES): $(DATESTAMP)
$(WWW_CCC_DE_UPDATES).orig: $(DATESTAMP)
$(RM) $@
$(WGET) -O $@ http://www.ccc.de/updates/$(WWW_CCC_DE_UPDATES)
$(WGET) -O $@ http://www.ccc.de/en/rss/updates
$(WWW_CCC_DE_UPDATES): $(WWW_CCC_DE_UPDATES).orig
$(VALIDATOR) --recover $< > $@
### Mr. Propper ###
.PHONY: clean

View File

@ -155,12 +155,12 @@
<xsl:param name="limit" select="5"/>
<div id="news">
<h2>
<a href="{document('../chaosupdates.rdf')/atom:feed/atom:link[@rel != 'self']/@href}">
<xsl:value-of select="document('../chaosupdates.rdf')/atom:feed/atom:title"/>
<a href="{document('../chaosupdates.xml')/atom:feed/atom:link[@rel != 'self']/@href}">
<xsl:value-of select="document('../chaosupdates.xml')/atom:feed/atom:title"/>
</a>
</h2>
<ul>
<xsl:for-each select="document('../chaosupdates.rdf')/atom:feed/atom:entry[position() &lt;= $limit]">
<xsl:for-each select="document('../chaosupdates.xml')/atom:feed/atom:entry[position() &lt;= $limit]">
<li>
<a href="{atom:link[@rel = 'alternate']/@href}">
<xsl:value-of select="atom:title"/>