Fix link in atom feeds
authorDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Sun, 30 Sep 2007 02:12:03 +0000 (22:12 -0400)
committerDavid Bartley <dtbartle@csclub.uwaterloo.ca>
Sun, 30 Sep 2007 02:12:03 +0000 (22:12 -0400)
xsl/atom.xsl

index 2873c30..e2b3f41 100644 (file)
@@ -15,6 +15,7 @@
 <xsl:template match="//eventdefs">
     <xsl:call-template name="atom">
         <xsl:with-param name="title">Events</xsl:with-param>
+        <xsl:with-param name="feedfile">events.atom</xsl:with-param>
         <xsl:with-param name="uuid">006f667f-ecae-483a-8cbc-f0c5084dccb1</xsl:with-param>
     </xsl:call-template>
 </xsl:template>
 <xsl:template match="//newsdefs">
     <xsl:call-template name="atom">
         <xsl:with-param name="title">News</xsl:with-param>
+        <xsl:with-param name="feedfile">news.atom</xsl:with-param>
         <xsl:with-param name="uuid">bdae3752-0cb7-4932-b176-019076389b54</xsl:with-param>
     </xsl:call-template>
 </xsl:template>
 
 <xsl:template name="atom">
     <xsl:param name="title"/>
+    <xsl:param name="feedfile"/>
     <xsl:param name="uuid"/>
     <feed xmlns="http://www.w3.org/2005/Atom">
         <title>UW Computer Science Club <xsl:value-of select="$title"/></title>
-        <link href="http://csclub.uwaterloo.ca/{$title}.atom" rel="self"/>
+        <link href="http://csclub.uwaterloo.ca/{$feedfile}" rel="self"/>
         <link href="http://csclub.uwaterloo.ca/"/>
         <updated><xsl:value-of select="$g_date"/></updated>
         <id>urn:uuid:<xsl:value-of select="$uuid"/></id>