<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
- <body class="docs">
+ <body id="docs">
<h1>Documentation</h1>
<div class="panel">
<h2>Deployment / operation</h2>
</script>
</head>
<body onload="pageload()">
- <xsl:if test="html:html/html:body/@class">
- <xsl:attribute name="class">
- <xsl:value-of select="html:html/html:body/@class"/>
- </xsl:attribute>
- </xsl:if>
<div id="body">
- <div id="content">
- <xsl:apply-templates select="/html:html/html:body/*" mode="content"/>
- </div>
+ <xsl:choose>
+ <xsl:when test="html:html/html:body/html:div/@class='document'">
+ <xsl:apply-templates select="/html:html/html:body/*" mode="content"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <div class="document">
+ <xsl:if test="html:html/html:body/@id">
+ <xsl:attribute name="id">
+ <xsl:value-of select="html:html/html:body/@id"/>
+ </xsl:attribute>
+ </xsl:if>
+ <xsl:apply-templates select="/html:html/html:body/*" mode="content"/>
+ </div>
+ </xsl:otherwise>
+ </xsl:choose>
</div>
<div id="nav">
<div id="home">
print('''<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
-<body class="hvsupport">
+<body id="hvsupport">
<h1>libvirt API support matrix</h1>
<ul id="toc"></ul>