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: # Navigationsleiste:
NAVIGATION=content/navigation.xml NAVIGATION=content/navigation.xml
# Chaosupdates: # Chaosupdates:
WWW_CCC_DE_UPDATES=chaosupdates.rdf WWW_CCC_DE_UPDATES=chaosupdates.xml
# Calendar summary:: # Calendar summary::
CALENDAR_SUMMARY=calendar-summary.xml 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 build/datenspuren/news-atom.xml : VFLAGS_OUT=$(VFLAGS) --relaxng xsd/atom.rng
### Die neuesten Chaosupdates holen ### ### Die neuesten Chaosupdates holen ###
$(WWW_CCC_DE_UPDATES): $(DATESTAMP) $(WWW_CCC_DE_UPDATES).orig: $(DATESTAMP)
$(RM) $@ $(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 ### ### Mr. Propper ###
.PHONY: clean .PHONY: clean

View File

@ -155,12 +155,12 @@
<xsl:param name="limit" select="5"/> <xsl:param name="limit" select="5"/>
<div id="news"> <div id="news">
<h2> <h2>
<a href="{document('../chaosupdates.rdf')/atom:feed/atom:link[@rel != 'self']/@href}"> <a href="{document('../chaosupdates.xml')/atom:feed/atom:link[@rel != 'self']/@href}">
<xsl:value-of select="document('../chaosupdates.rdf')/atom:feed/atom:title"/> <xsl:value-of select="document('../chaosupdates.xml')/atom:feed/atom:title"/>
</a> </a>
</h2> </h2>
<ul> <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> <li>
<a href="{atom:link[@rel = 'alternate']/@href}"> <a href="{atom:link[@rel = 'alternate']/@href}">
<xsl:value-of select="atom:title"/> <xsl:value-of select="atom:title"/>