Default-Limit von Event und CCC Updates jeweils auf 5

Namespace-Reduzierung
event zu Überwachung in der Neustadt


git-svn-id: svn://svn.c3d2.de/c3d2-web/trunk@561 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
astro 2006-12-07 23:26:47 +00:00
parent aa048f3a39
commit e35c7b7d63
3 changed files with 41 additions and 34 deletions

View File

@ -53,4 +53,9 @@
<location>WIR AG, Martin-Luther-Straße 21, Dresden</location>
<link>http://leipzigerkamera.twoday.net/stories/3009557/</link>
</event>
<event title="Big Brother für die Neustadt?">
<start>2006-12-12T19:30:00</start>
<location>Scheune, Neustadt</location>
<link>http://spdnet.sozi.info/sachsen/der/neustadt/index.php?mod=kalender&amp;op=show&amp;menu=1</link>
</event>
</calendar>

View File

@ -133,32 +133,34 @@
</xsl:template>
<xsl:template name="chaosupdates">
<div id="news">
<h2>
<a>
<xsl:attribute name="href">
<xsl:value-of select="document('../chaosupdates.rdf')/rdf:RDF/rss:channel/rss:link"/>
</xsl:attribute>
<xsl:param name="limit" select="5"/>
<div id="news">
<h2>
<a>
<xsl:attribute name="href">
<xsl:value-of select="document('../chaosupdates.rdf')/rdf:RDF/rss:channel/rss:link"/>
</xsl:attribute>
<xsl:value-of select="document('../chaosupdates.rdf')/rdf:RDF/rss:channel/rss:title"/>
</a>
</h2>
<ul>
<xsl:for-each select="document('../chaosupdates.rdf')/rdf:RDF/rss:item[position() &lt; 14]">
<li>
<a>
<xsl:attribute name="href">
<xsl:value-of select="rss:link"/>
</xsl:attribute>
<xsl:value-of select="rss:title"/>
</a>
</li>
</xsl:for-each>
</ul>
</div> <!-- id="news" -->
<xsl:value-of select="document('../chaosupdates.rdf')/rdf:RDF/rss:channel/rss:title"/>
</a>
</h2>
<ul>
<xsl:for-each select="document('../chaosupdates.rdf')/rdf:RDF/rss:item[position() &lt;= $limit]">
<li>
<a>
<xsl:attribute name="href">
<xsl:value-of select="rss:link"/>
</xsl:attribute>
<xsl:value-of select="rss:title"/>
</a>
</li>
</xsl:for-each>
</ul>
</div> <!-- id="news" -->
</xsl:template>
<xsl:template name="calendar-events">
<xsl:param name="limit" select="5"/>
<xsl:if test="document('../calendar-summary.xml')/page/calendar-summary/event[date:seconds(end) &gt;= date:seconds(date:date())]">
<div id="upcoming">
<h2>
@ -168,15 +170,17 @@
<xsl:for-each select="document('../calendar-summary.xml')/page/calendar-summary/event[date:seconds(end) &gt;= date:seconds(date:date())]">
<xsl:sort select="date:seconds(start)" data-type="number" order="ascending" />
<li>
<xsl:call-template name="datespan-to-human">
<xsl:with-param name="start" select="start"/>
<xsl:with-param name="end" select="end"/>
</xsl:call-template>:
<a href="{link}">
<xsl:value-of select="title"/>
</a>
</li>
<xsl:if test="position() &lt;= $limit">
<li>
<xsl:call-template name="datespan-to-human">
<xsl:with-param name="start" select="start"/>
<xsl:with-param name="end" select="end"/>
</xsl:call-template>:
<a href="{link}">
<xsl:value-of select="title"/>
</a>
</li>
</xsl:if>
</xsl:for-each>
</ul>
</div>

View File

@ -2,10 +2,8 @@
<xsl:stylesheet version="1.0"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rss="http://purl.org/rss/1.0/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:date="http://exslt.org/dates-and-times"
exclude-result-prefixes="xsl rss rdf">
exclude-result-prefixes="xsl">
<xsl:include href="common.xsl" />