Made news right order
authorWebmaster <www@csclub.uwaterloo.ca>
Wed, 18 Sep 2002 06:25:33 +0000 (06:25 +0000)
committerWebmaster <www@csclub.uwaterloo.ca>
Wed, 18 Sep 2002 06:25:33 +0000 (06:25 +0000)
cscweb.xsl
news.xml

index df0003d..773f396 100755 (executable)
 </xsl:template>
 
 <xsl:template match="newsdefs">
- <xsl:apply-templates select="newsitem[csc:term(@date) = csc:term($date)]"/>
+ <xsl:apply-templates select="newsitem[csc:term(@date) = csc:term($date)]">
+   <xsl:sort select="translate(@date, '-', '')"
+             order="descending"
+             data-type="number"/>
+ </xsl:apply-templates>
 </xsl:template>
 
 <xsl:template match="newsitem">
index 0d3943a..6c59933 100755 (executable)
--- a/news.xml
+++ b/news.xml
@@ -6,7 +6,7 @@
   The Fall elections have occured and the <a
   href="/about/exec.html">results</a> are in.
  </newsitem>
- <newsitem author="sjdutoit" date="2002-08-10">
+ <newsitem author="sjdutoit" date="2002-09-18">
   We've changed to the new site! Please send your comments to the <a
   href="webmaster@csclub.uwaterloo.ca">webmaster</a>. The <a
   href="/old/">old site</a> is still available. A few things may not
@@ -40,4 +40,4 @@
  <newsitem author="sjdutoit" date="2002-02-03">
   XML goodness.
  </newsitem>
-</newsdefs>
\ No newline at end of file
+</newsdefs>