Make website XHTML 1.1 compliant
[mspang/www.git] / xsl / media.xsl
index a394717..4f381cd 100644 (file)
@@ -56,8 +56,8 @@
   <xsl:param name="ads" />
   <xsl:variable name="realurl" select="concat('http://csclub.uwaterloo.ca/media/', fn:encode-for-uri(@title), '.html')" />
   <xsl:result-document method="xml" encoding="ISO-8859-1"
-      doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
-      doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
+      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, '.html')}">
     <html>
       <head>
@@ -87,7 +87,7 @@
         <xsl:if test="mediafile">
           <h2>Download</h2>
           <div>
-            <xsl:copy-of select="$infotext" />
+            <xsl:apply-templates select="$infotext" />
             <xsl:if test="$bittorrent = 'yes'">
               <p class="mediafile">
                 BitTorrent:
         </xsl:if>
         <xsl:if test="other">
         <div>
-          <xsl:copy-of select="other/node()"/>
+          <xsl:apply-templates select="other/node()" />
           </div>
         </xsl:if>
         <p>