made atoms point to specific page
authorDavid Tenty <daltenty@csclub.uwaterloo.ca>
Tue, 25 Sep 2007 20:36:18 +0000 (16:36 -0400)
committerDavid Tenty <daltenty@csclub.uwaterloo.ca>
Tue, 25 Sep 2007 20:36:18 +0000 (16:36 -0400)
xsl/atom.xsl

index 07acde5..60367f8 100644 (file)
@@ -53,7 +53,8 @@
         <xsl:for-each select="eventitem">
                <entry>
                <title><xsl:value-of select="@title"/></title>
-               <link href="http://csclub.uwaterloo.ca"/>
+               <!-- 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>
                <summary><xsl:value-of select="abstract"/></summary>
                </entry>
@@ -61,4 +62,4 @@
        </feed>
 </xsl:template>
 
-</xsl:stylesheet>
+</xsl:stylesheet>
\ No newline at end of file