Add .html back to the media files
authorMichael Spang <mspang@csclub.uwaterloo.ca>
Mon, 17 Dec 2007 15:39:12 +0000 (10:39 -0500)
committerMichael Spang <mspang@csclub.uwaterloo.ca>
Mon, 17 Dec 2007 15:39:12 +0000 (10:39 -0500)
There's a little more magic to Apache's "aliasing"
of foo to foo.html than meets the eye. You can provide
the same resource in different formats and Apache will
serve whichever one the browser best supports through
mod_negotation. If you remove the .html from the *filename*
Apache won't be able to determine the content-type and
will assume the default (currently text/plain).

xsl/media.xsl

index 1849b8d..e9f1db9 100644 (file)
@@ -60,7 +60,7 @@
   <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="{concat($g_outdir, @title, $suffix)}">
+      href="{concat($g_outdir, @title, $suffix, '.html')}">
     <html>
       <head>
         <title><xsl:value-of select="@title" /></title>