2 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform" version=
"1.0"
3 xmlns=
"http://www.devhelp.net/book"
4 xmlns:
exsl=
"http://exslt.org/common"
5 xmlns:
str=
"http://exslt.org/strings"
6 extension-element-prefixes=
"exsl str"
7 exclude-result-prefixes=
"exsl str">
8 <!-- The stylesheet for the html pages -->
9 <xsl:import href=
"html.xsl"/>
11 <xsl:output method=
"xml" encoding=
"UTF-8" indent=
"yes"/>
13 <!-- Build keys for all symbols -->
14 <xsl:key name=
"symbols" match=
"/api/symbols/*" use=
"@name"/>
16 <xsl:template match=
"/">
17 <xsl:document xmlns=
"http://www.devhelp.net/book" href=
"libvirt.devhelp"
18 method=
"xml" encoding=
"UTF-8" indent=
"yes">
19 <xsl:apply-templates/>
23 <xsl:template match=
"/api">
24 <book title=
"{@name} Reference Manual" link=
"index.html" author=
"" name=
"{@name}">
25 <xsl:apply-templates select=
"files"/>
26 <xsl:apply-templates select=
"symbols"/>
28 <xsl:call-template name=
"generate_index"/>
29 <xsl:call-template name=
"generate_general"/>
31 <xsl:template match=
"/api/files">
33 <sub name=
"API" link=
"general.html">
34 <xsl:apply-templates select=
"file"/>
38 <xsl:template match=
"/api/files/file">
39 <xsl:variable name=
"module" select=
"@name"/>
40 <xsl:variable name=
"prev" select=
"string(preceding-sibling::file[position()=1]/@name)"/>
41 <xsl:variable name=
"next" select=
"string(following-sibling::file[position()=1]/@name)"/>
42 <sub name=
"{@name}" link=
"libvirt-{@name}.html"/>
43 <xsl:document xmlns=
"" href=
"libvirt-{@name}.html" method=
"xml" indent=
"yes" encoding=
"UTF-8">
46 <meta http-equiv=
"Content-Type" content=
"text/html; charset=UTF-8"/>
47 <title><xsl:value-of select=
"concat(@name, ': ', summary)"/></title>
48 <meta name=
"generator" content=
"Libvirt devhelp stylesheet"/>
49 <link rel=
"start" href=
"index.html" title=
"libvirt Reference Manual"/>
50 <link rel=
"up" href=
"general.html" title=
"API"/>
51 <link rel=
"stylesheet" href=
"style.css" type=
"text/css"/>
52 <link rel=
"chapter" href=
"general.html" title=
"API"/>
54 <body bgcolor=
"white" text=
"black" link=
"#0000FF" vlink=
"#840084" alink=
"#0000FF">
56 <table class=
"navigation" width=
"100%" summary=
"Navigation header" cellpadding=
"2" cellspacing=
"2">
58 <xsl:if test=
"$prev != ''">
59 <td><a accesskey=
"p" href=
"libvirt-{$prev}.html"><img src=
"left.png" width=
"24" height=
"24" border=
"0" alt=
"Prev"/></a></td>
61 <td><a accesskey=
"u" href=
"general.html"><img src=
"up.png" width=
"24" height=
"24" border=
"0" alt=
"Up"/></a></td>
62 <td><a accesskey=
"h" href=
"index.html"><img src=
"home.png" width=
"24" height=
"24" border=
"0" alt=
"Home"/></a></td>
63 <xsl:if test=
"$next != ''">
64 <td><a accesskey=
"n" href=
"libvirt-{$next}.html"><img src=
"right.png" width=
"24" height=
"24" border=
"0" alt=
"Next"/></a></td>
66 <th width=
"100%" align=
"center">libvirt Reference Manual
</th>
69 <h2><span class=
"refentrytitle"><xsl:value-of select=
"@name"/></span></h2>
70 <p><xsl:value-of select=
"@name"/> -
<xsl:value-of select=
"summary"/></p>
71 <p><xsl:value-of select=
"description"/></p>
72 <xsl:if test=
"deprecated">
73 <p> WARNING: this module is deprecated !
</p>
75 <div class=
"refsynopsisdiv">
77 <pre class=
"synopsis">
78 <xsl:apply-templates mode=
"synopsis" select=
"exports"/>
81 <div class=
"refsect1" lang=
"en">
84 <div class=
"refsect1" lang=
"en">
86 <div class=
"refsect2" lang=
"en">
87 <xsl:apply-templates mode=
"details" select=
"/api/symbols/macro[@file=$module]"/>
88 <xsl:apply-templates mode=
"details" select=
"/api/symbols/typedef[@file=$module] | /api/symbols/struct[@file=$module]"/>
89 <xsl:apply-templates mode=
"details" select=
"/api/symbols/functype[@file=$module]"/>
90 <xsl:apply-templates mode=
"details" select=
"/api/symbols/variable[@file=$module]"/>
91 <xsl:apply-templates mode=
"details" select=
"/api/symbols/function[@file=$module]"/>
98 <xsl:template match=
"/api/symbols">
100 <xsl:apply-templates select=
"macro"/>
101 <xsl:apply-templates select=
"enum"/>
102 <xsl:apply-templates select=
"typedef"/>
103 <xsl:apply-templates select=
"struct"/>
104 <xsl:apply-templates select=
"functype"/>
105 <xsl:apply-templates select=
"variable"/>
106 <xsl:apply-templates select=
"function"/>
109 <xsl:template match=
"/api/symbols/functype">
110 <function name=
"{@name}" link=
"libvirt-{@file}.html#{@name}"/>
112 <xsl:template match=
"/api/symbols/function">
113 <function name=
"{@name} ()" link=
"libvirt-{@file}.html#{@name}"/>
115 <xsl:template match=
"/api/symbols/typedef">
116 <function name=
"{@name}" link=
"libvirt-{@file}.html#{@name}"/>
118 <xsl:template match=
"/api/symbols/enum">
119 <function name=
"{@name}" link=
"libvirt-{@file}.html#{@name}"/>
121 <xsl:template match=
"/api/symbols/struct">
122 <function name=
"{@name}" link=
"libvirt-{@file}.html#{@name}"/>
124 <xsl:template match=
"/api/symbols/macro">
125 <function name=
"{@name}" link=
"libvirt-{@file}.html#{@name}"/>
127 <xsl:template match=
"/api/symbols/variable">
128 <function name=
"{@name}" link=
"libvirt-{@file}.html#{@name}"/>