Fixed event atom feed so it validates
authorDavid Tenty <daltenty@csclub.uwaterloo.ca>
Sat, 6 Oct 2007 20:47:04 +0000 (16:47 -0400)
committerDavid Tenty <daltenty@csclub.uwaterloo.ca>
Sat, 6 Oct 2007 20:47:04 +0000 (16:47 -0400)
xsl/atom.xsl

index a22cd9d..58ce0fc 100644 (file)
@@ -33,7 +33,7 @@
         <title>UW Computer Science Club <xsl:value-of select="$title"/></title>
         <link href="http://csclub.uwaterloo.ca/{$feedfile}" rel="self"/>
         <link href="http://csclub.uwaterloo.ca/"/>
-        <updated><xsl:value-of select="$g_datetime"/></updated>
+        <updated><xsl:value-of select="translate($g_datetime,' ','T')"/></updated>
         <id>urn:uuid:<xsl:value-of select="$uuid"/></id>
         <author>
         <name>University of Waterloo Computer Science Club</name>
                 <title><xsl:value-of select="@title"/></title>
                 <!-- we do a hack here with the translate to get whitespace replacement -->
                 <link href="{concat('http://csclub.uwaterloo.ca/events/',translate(@room,' ','_'),'-',translate(@date,' ','_'),'-',translate(@time,' ','_'),'.html')}"/>
-                <author><xsl:value-of select="short"/></author>
+                <author><name><xsl:value-of select="short"/></name></author>
                 <summary><xsl:value-of select="abstract"/></summary>
+               <updated><xsl:value-of select="translate($g_datetime,' ','T')"/></updated>
+               <id><xsl:value-of select="concat('http://csclub.uwaterloo.ca/events/',translate(@room,' ','_'),'-',translate(@date,' ','_'),'-',translate(@time,' ','_'),'.html')"/></id>
             </entry>
         </xsl:for-each>
     </feed>