Made atom feeds happy

This commit is contained in:
David Tenty 2007-09-25 01:00:01 -04:00
parent 2275a109df
commit f5a2876dc1
1 changed files with 14 additions and 17 deletions

View File

@ -43,24 +43,21 @@
<author>
<name>University of Waterloo Computer Science Club</name>
</author>
<xsl:apply-templates select="newsitem" />
<xsl:apply-templates select="eventitem" />
<xsl:for-each select="newsitem">
<entry>
<link href="http://csclub.uwaterloo.ca"/>
<summary><xsl:value-of select="."/></summary>
<author><xsl:value-of select="@author"/></author>
</entry>
</xsl:for-each>
<xsl:for-each select="eventitem">
<entry>
<title><xsl:value-of select="short"/></title>
<link href="http://csclub.uwaterloo.ca"/>
<summary><xsl:value-of select="abstract"/></summary>
</entry>
</xsl:for-each>
</feed>
</xsl:template>
<xsl:template match="//eventitem">
<entry>
<title><xsl:value-of select="//short"/></title>
<link href="http://csclub.uwaterloo.ca"/>
<summary><xsl:value-of select="//abstract"/></summary>
</entry>
</xsl:template>
<xsl:template match="//newsitem">
<entry>
<link href="http://csclub.uwaterloo.ca"/>
<summary><xsl:value-of select="//newsitem"/></summary>
</entry>
</xsl:template>
</xsl:stylesheet>