Adjust templates/page.tmpl for better XHTML output. obsolete/old
authorW. Trevor King <wking@drexel.edu>
Thu, 14 Oct 2010 01:42:47 +0000 (21:42 -0400)
committerW. Trevor King <wking@drexel.edu>
Thu, 14 Oct 2010 01:42:47 +0000 (21:42 -0400)
templates/page.tmpl

index 8659018a05fef3d2915287e66dcf23b6140b65aa..84ff37fa096844ee4e2f5810569d83046ccecab7 100644 (file)
@@ -1,6 +1,7 @@
 <TMPL_IF HTML5><!DOCTYPE html>
 <html>
-<TMPL_ELSE><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+<TMPL_ELSE><?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">
 </TMPL_IF>
@@ -10,7 +11,7 @@
 <TMPL_IF BASEURL><base href="<TMPL_VAR BASEURL>" /></TMPL_IF>
 </TMPL_IF>
 </TMPL_IF>
-<TMPL_IF HTML5><meta charset="utf-8" /><TMPL_ELSE><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></TMPL_IF>
+<TMPL_IF HTML5><meta charset="utf-8" /><TMPL_ELSE><meta http-equiv="Content-Type" content="application/xhtml+xml; charset=utf-8" /></TMPL_IF>
 <title><TMPL_VAR TITLE></title>
 <TMPL_IF FAVICON>
 <link rel="icon" href="<TMPL_VAR BASEURL><TMPL_VAR FAVICON>" type="image/x-icon" />