[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH] Fix namespace bugs in API docs, todo page & hv support page



From: "Daniel P. Berrange" <berrange redhat com>

The XSL for generating the API docs was missing the HTML5
namespace declarations. The todo and hvsupport scripts were
also missing the HTML5 doctype / namespace declaration.

Pushed as a website breaker fix

Signed-off-by: Daniel P. Berrange <berrange redhat com>
---
 docs/hvsupport.pl | 4 +++-
 docs/newapi.xsl   | 2 ++
 docs/todo.pl      | 5 +++--
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/docs/hvsupport.pl b/docs/hvsupport.pl
index b415abc..e31441e 100755
--- a/docs/hvsupport.pl
+++ b/docs/hvsupport.pl
@@ -341,7 +341,9 @@ foreach my $drv (keys %{$groups{"virDriver"}->{drivers}}) {
 # Finally we generate the HTML file with the tables
 
 print <<EOF;
-<html>
+<?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";>
 <head>
 <title>libvirt API support matrix</title>
 </head>
diff --git a/docs/newapi.xsl b/docs/newapi.xsl
index af1dbc8..d5b210e 100644
--- a/docs/newapi.xsl
+++ b/docs/newapi.xsl
@@ -6,6 +6,8 @@
   Daniel Veillard
 -->
 <xsl:stylesheet version="1.0"
+  xmlns="http://www.w3.org/1999/xhtml";
+  xmlns:html="http://www.w3.org/1999/xhtml";
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
   xmlns:exsl="http://exslt.org/common";
   xmlns:str="http://exslt.org/strings";
diff --git a/docs/todo.pl b/docs/todo.pl
index 68d82d4..36698e8 100755
--- a/docs/todo.pl
+++ b/docs/todo.pl
@@ -87,8 +87,9 @@ sub escape {
     return $txt;
 };
 
-print "<?xml version=\"1.0\"?>\n";
-print "<html>\n";
+print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
+print "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\";>\n";
+print "<html xmlns=\"http://www.w3.org/1999/xhtml\";>\n";
 print "  <body>\n";
 if (defined $title) {
     print "    <h1>", &escape($title), "</h1>\n";
-- 
1.8.1.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]