3 xmlns=
"http://www.w3.org/1999/xhtml"
4 xmlns:
html=
"http://www.w3.org/1999/xhtml"
5 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
6 xmlns:
exsl=
"http://exslt.org/common"
7 exclude-result-prefixes=
"xsl exsl html"
10 <xsl:template match=
"node() | @*" mode=
"content">
12 <xsl:apply-templates select=
"node() | @*" mode=
"content"/>
17 <xsl:template match=
"html:ul[@id='toc']" mode=
"content">
18 <xsl:call-template name=
"toc"/>
21 <xsl:template match=
"html:div[@id='include']" mode=
"content">
22 <xsl:call-template name=
"include"/>
25 <xsl:template name=
"toc">
27 <xsl:for-each select=
"/html:html/html:body/html:h2[count(html:a) = 1]">
28 <xsl:variable name=
"thish2" select=
"."/>
30 <a href=
"#{html:a/@id}"><xsl:value-of select=
"html:a/text()"/></a>
31 <xsl:if test=
"count(./following-sibling::html:h3[preceding-sibling::html:h2[1] = $thish2 and count(html:a) = 1]) > 0">
33 <xsl:for-each select=
"./following-sibling::html:h3[preceding-sibling::html:h2[1] = $thish2 and count(html:a) = 1]">
34 <xsl:variable name=
"thish3" select=
"."/>
36 <a href=
"#{html:a/@id}"><xsl:value-of select=
"html:a/text()"/></a>
37 <xsl:if test=
"count(./following-sibling::html:h4[preceding-sibling::html:h3[1] = $thish3 and count(html:a) = 1]) > 0">
39 <xsl:for-each select=
"./following-sibling::html:h4[preceding-sibling::html:h3[1] = $thish3 and count(html:a) = 1]">
40 <xsl:variable name=
"thish4" select=
"."/>
42 <a href=
"#{html:a/@id}"><xsl:value-of select=
"html:a/text()"/></a>
43 <xsl:if test=
"count(./following-sibling::html:h5[preceding-sibling::html:h4[1] = $thish4 and count(html:a) = 1]) > 0">
45 <xsl:for-each select=
"./following-sibling::html:h5[preceding-sibling::html:h4[1] = $thish4 and count(html:a) = 1]">
46 <xsl:variable name=
"thish5" select=
"."/>
48 <a href=
"#{html:a/@id}"><xsl:value-of select=
"html:a/text()"/></a>
49 <xsl:if test=
"count(./following-sibling::html:h6[preceding-sibling::html:h5[1] = $thish5 and count(html:a) = 1]) > 0">
51 <xsl:for-each select=
"./following-sibling::html:h6[preceding-sibling::html:h5[1] = $thish5 and count(html:a) = 1]">
53 <a href=
"#{html:a/@id}"><xsl:value-of select=
"html:a/text()"/></a>
75 <!-- This is the master page structure -->
76 <xsl:template match=
"/" mode=
"page">
77 <xsl:param name=
"pagename"/>
78 <xsl:param name=
"timestamp"/>
79 <xsl:text disable-output-escaping=
"yes"><!DOCTYPE html
>
83 This file is autogenerated from
<xsl:value-of select=
"$pagename"/>.in
84 Do not edit this file. Changes will be lost.
87 This page was generated at
<xsl:value-of select=
"$timestamp"/>.
90 <meta charset=
"UTF-8"/>
91 <meta name=
"viewport" content=
"width=device-width, initial-scale=1"/>
92 <link rel=
"stylesheet" type=
"text/css" href=
"{$href_base}main.css"/>
93 <link rel=
"apple-touch-icon" sizes=
"180x180" href=
"/apple-touch-icon.png"/>
94 <link rel=
"icon" type=
"image/png" sizes=
"32x32" href=
"/favicon-32x32.png"/>
95 <link rel=
"icon" type=
"image/png" sizes=
"16x16" href=
"/favicon-16x16.png"/>
96 <link rel=
"manifest" href=
"/manifest.json"/>
97 <meta name=
"theme-color" content=
"#ffffff"/>
98 <title>libvirt:
<xsl:value-of select=
"html:html/html:body/html:h1"/></title>
99 <meta name=
"description" content=
"libvirt, virtualization, virtualization API"/>
100 <xsl:apply-templates select=
"/html:html/html:head/*" mode=
"content"/>
102 <script type=
"text/javascript" src=
"{$href_base}js/main.js">
103 <xsl:comment>// forces non-empty element
</xsl:comment>
106 <body onload=
"pageload()">
107 <xsl:if test=
"html:html/html:body/@class">
108 <xsl:attribute name=
"class">
109 <xsl:value-of select=
"html:html/html:body/@class"/>
114 <xsl:apply-templates select=
"/html:html/html:body/*" mode=
"content"/>
119 <a href=
"{$href_base}index.html">Home
</a>
123 <li><a href=
"{$href_base}downloads.html">Download
</a></li>
124 <li><a href=
"{$href_base}contribute.html">Contribute
</a></li>
125 <li><a href=
"{$href_base}docs.html">Docs
</a></li>
129 <form id=
"simplesearch" action=
"https://www.google.com/search" enctype=
"application/x-www-form-urlencoded" method=
"get">
131 <input id=
"searchsite" name=
"sitesearch" type=
"hidden" value=
"libvirt.org"/>
132 <input id=
"searchq" name=
"q" type=
"text" size=
"12" value=
""/>
133 <input name=
"submit" type=
"submit" value=
"Go"/>
136 <div id=
"advancedsearch">
137 <span><input type=
"radio" name=
"what" id=
"whatwebsite" checked=
"checked" value=
"website"/><label for=
"whatwebsite">Website
</label></span>
138 <span><input type=
"radio" name=
"what" id=
"whatwiki" value=
"wiki"/><label for=
"whatwiki">Wiki
</label></span>
139 <span><input type=
"radio" name=
"what" id=
"whatdevs" value=
"devs"/><label for=
"whatdevs">Developers list
</label></span>
140 <span><input type=
"radio" name=
"what" id=
"whatusers" value=
"users"/><label for=
"whatusers">Users list
</label></span>
148 <li><a href=
"{$href_base}contact.html#email">email
</a></li>
149 <li><a href=
"{$href_base}contact.html#irc">irc
</a></li>
155 <li><a href=
"https://twitter.com/hashtag/libvirt">twitter
</a></li>
156 <li><a href=
"http://stackoverflow.com/questions/tagged/libvirt">stackoverflow
</a></li>
157 <li><a href=
"http://serverfault.com/questions/tagged/libvirt">serverfault
</a></li>
161 Participants in the libvirt project agree to abide by
<a href=
"{$href_base}governance.html#codeofconduct">the project code of conduct
</a>
169 <xsl:template name=
"include">
170 <xsl:variable name=
"inchtml">
171 <xsl:copy-of select=
"document(@filename)"/>
174 <xsl:apply-templates select=
"exsl:node-set($inchtml)/html:html/html:body/*" mode=
"content"/>
177 <xsl:template match=
"html:h2 | html:h3 | html:h4 | html:h5 | html:h6" mode=
"content">
178 <xsl:element name=
"{name()}">
179 <xsl:apply-templates mode=
"copy" />
180 <xsl:if test=
"./html:a/@id">
181 <a class=
"headerlink" href=
"#{html:a/@id}" title=
"Permalink to this headline">¶</a>
186 <xsl:template match=
"text()" mode=
"copy">
187 <xsl:value-of select=
"."/>
190 <xsl:template match=
"node()" mode=
"copy">
191 <xsl:element name=
"{name()}">
192 <xsl:copy-of select=
"./@*"/>
193 <xsl:apply-templates mode=
"copy" />