提交 5e7b0e87 编写于 作者: D Daniel P. Berrange

Fix namespace bugs in API docs, todo page & hv support page

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: NDaniel P. Berrange <berrange@redhat.com>
上级 246d0068
...@@ -341,7 +341,9 @@ foreach my $drv (keys %{$groups{"virDriver"}->{drivers}}) { ...@@ -341,7 +341,9 @@ foreach my $drv (keys %{$groups{"virDriver"}->{drivers}}) {
# Finally we generate the HTML file with the tables # Finally we generate the HTML file with the tables
print <<EOF; 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> <head>
<title>libvirt API support matrix</title> <title>libvirt API support matrix</title>
</head> </head>
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
Daniel Veillard Daniel Veillard
--> -->
<xsl:stylesheet version="1.0" <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:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:exsl="http://exslt.org/common" xmlns:exsl="http://exslt.org/common"
xmlns:str="http://exslt.org/strings" xmlns:str="http://exslt.org/strings"
......
...@@ -87,8 +87,9 @@ sub escape { ...@@ -87,8 +87,9 @@ sub escape {
return $txt; return $txt;
}; };
print "<?xml version=\"1.0\"?>\n"; print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
print "<html>\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"; print " <body>\n";
if (defined $title) { if (defined $title) {
print " <h1>", &escape($title), "</h1>\n"; print " <h1>", &escape($title), "</h1>\n";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册