Fixed translation of event URLs to strip single quote. This, in turn, fixed generatio...
authorMarc Burns <m4burns@caffeine.csclub.uwaterloo.ca>
Fri, 28 Jan 2011 06:13:46 +0000 (01:13 -0500)
committerMarc Burns <m4burns@caffeine.csclub.uwaterloo.ca>
Fri, 28 Jan 2011 06:13:46 +0000 (01:13 -0500)
xsl/events.xsl

index 3306016..37a9022 100644 (file)
 </xsl:template>
 
 <xsl:template match="eventitem">
+  <xsl:variable name="event_translate_fix"> '</xsl:variable>
   <xsl:document method="xml" encoding="ISO-8859-1"
       doctype-public="-//W3C//DTD XHTML 1.1//EN"
       doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
-      href="{translate(concat($g_outdir, @room, '-', @date, '-', @time, '.html'), ' ', '_')}">
+      href="{translate(concat($g_outdir, @room, '-', @date, '-', @time, '.html'), $event_translate_fix, '_')}">
     <html>
       <head>
         <title><xsl:value-of select="@title" /></title>