]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix namespace bugs in API docs, todo page & hv support page
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 7 May 2013 10:18:10 +0000 (11:18 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 7 May 2013 10:19:04 +0000 (11:19 +0100)
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.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
docs/hvsupport.pl
docs/newapi.xsl
docs/todo.pl

index b415abc23306dd2bd37c7ebc45e91d5bce66c675..e31441eb1e2d2fc761dc8bfe78a1480b5c5c904b 100755 (executable)
@@ -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>
index af1dbc8fa7d4702083723ffcbcc08e6e830fbf90..d5b210efc17b7bc416e3179fe317219e03ff7a64 100644 (file)
@@ -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"
index 68d82d4e76b465a1c440e4114a94415ec7f6b2ff..36698e8ade0ded18cb91b3d9ec94f863a8908e76 100755 (executable)
@@ -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";