I have a question about XSLT.
On a website i have a simple calendar, showing events who are going on in the future.
But when an event is done, it should be removed from my list. By done i mean, that the date of the event is past the date of today.
Every event have a date attached.
Look at the folowing code:
<xsl:for-each select="$currentPage//node[@template='1238']">
<xsl:sort data-type="text" select="./data[@alias='dato']" order="ascending"/>
<div class="aktivitet_forside">
...MY EVENT CONTENT...
</div>
</xsl:for-each>
The above code will show me all events with a template='1238' and that is also correct, because that is the template of my events.
But as I mentioned before every event have a field containing a date. The field is called "dato". This is also the number I am sorting the events after, so the event with a date closest to today will be shown at the top of the list.
The format of the "dato"-field is: 2009-08-30T08:59:00
How do i automaticaly remove an event where the value of the "date"-field is past the date of today?
So if todays date is: 3th of september 2009, an event who has a date of 30th of august 2009 should not figure on the list.