Made news right order
This commit is contained in:
parent
4dc258e620
commit
6cacfc6a11
|
@ -117,7 +117,11 @@
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="newsdefs">
|
<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>
|
||||||
|
|
||||||
<xsl:template match="newsitem">
|
<xsl:template match="newsitem">
|
||||||
|
|
4
news.xml
4
news.xml
|
@ -6,7 +6,7 @@
|
||||||
The Fall elections have occured and the <a
|
The Fall elections have occured and the <a
|
||||||
href="/about/exec.html">results</a> are in.
|
href="/about/exec.html">results</a> are in.
|
||||||
</newsitem>
|
</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
|
We've changed to the new site! Please send your comments to the <a
|
||||||
href="webmaster@csclub.uwaterloo.ca">webmaster</a>. The <a
|
href="webmaster@csclub.uwaterloo.ca">webmaster</a>. The <a
|
||||||
href="/old/">old site</a> is still available. A few things may not
|
href="/old/">old site</a> is still available. A few things may not
|
||||||
|
@ -40,4 +40,4 @@
|
||||||
<newsitem author="sjdutoit" date="2002-02-03">
|
<newsitem author="sjdutoit" date="2002-02-03">
|
||||||
XML goodness.
|
XML goodness.
|
||||||
</newsitem>
|
</newsitem>
|
||||||
</newsdefs>
|
</newsdefs>
|
||||||
|
|
Loading…
Reference in New Issue