Sigh. Obviously I'm too stupid to copy and paste...

svn path=/trunk/; revision=16002
This commit is contained in:
Reinhard Müller 2010-06-30 10:04:20 +00:00
parent 38ca1a4b46
commit e492488c1d
1 changed files with 6 additions and 0 deletions

View File

@ -13,6 +13,12 @@
<xsl:template match="/html/body">
<body>
<xsl:apply-templates />
<!-- $today = current date (given as <html date="...">) -->
<xsl:variable name="today">
<xsl:value-of select="/html/@date" />
</xsl:variable>
<xsl:for-each select="/html/set/news[translate(@date,'-','') &lt;= translate($today,'-','')]">
<xsl:sort select="@date" order="descending"/>
<p>