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:
parent
aa048f3a39
commit
e35c7b7d63
|
@ -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&op=show&menu=1</link>
|
||||
</event>
|
||||
</calendar>
|
||||
|
|
|
@ -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() < 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() <= $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) >= 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) >= 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() <= $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>
|
||||
|
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in New Issue