News jetzt in richtiger Reihenfolge. (Danke an Anna)
git-svn-id: svn://svn.c3d2.de/c3d2-web/branches/toidinamais_coole_scheisse@86 31f61c52-7bfb-0310-b897-fc00f8a278f0
This commit is contained in:
parent
6f8c5c8a60
commit
19bd33c4b2
|
@ -3,6 +3,7 @@
|
|||
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">
|
||||
|
||||
<xsl:include href="date.xsl" />
|
||||
|
@ -196,7 +197,10 @@
|
|||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="item">
|
||||
<xsl:template match="news">
|
||||
<xsl:for-each select="document(newsfile)/item">
|
||||
<xsl:sort select="date:seconds(@date)" data-type="number" order="descending" />
|
||||
|
||||
<h3 class="news"><xsl:value-of select="@title"/></h3>
|
||||
|
||||
<small class="news_author">
|
||||
|
@ -219,11 +223,6 @@
|
|||
</div>
|
||||
|
||||
<hr class="news"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="news">
|
||||
<xsl:for-each select="newsfile">
|
||||
<xsl:apply-templates select="document(current())/item" />
|
||||
|
||||
</xsl:for-each>
|
||||
</xsl:template>
|
||||
|
|
Loading…
Reference in New Issue