mirror of https://gitee.com/openkylin/libvirt.git
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: Daniel P. Berrange <berrange@redhat.com>
This commit is contained in:
parent
246d0068ac
commit
5e7b0e8757
|
@ -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 @@
|
||||||
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 {
|
||||||
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";
|
||||||
|
|
Loading…
Reference in New Issue