tests: Use the new DO_TEST_CAPS_*() macros
[libvirt/ericb.git] / docs / devhelp / devhelp.xsl
blob17a980c73a87da9bdb6907cc5c8820160e533bd9
1 <?xml version="1.0"?>
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/>
20 </xsl:document>
21 </xsl:template>
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"/>
27 </book>
28 <xsl:call-template name="generate_index"/>
29 <xsl:call-template name="generate_general"/>
30 </xsl:template>
31 <xsl:template match="/api/files">
32 <chapters>
33 <sub name="API" link="general.html">
34 <xsl:apply-templates select="file"/>
35 </sub>
36 </chapters>
37 </xsl:template>
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">
44 <html>
45 <head>
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"/>
53 </head>
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">
57 <tr valign="middle">
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>
60 </xsl:if>
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>
65 </xsl:if>
66 <th width="100%" align="center">libvirt Reference Manual</th>
67 </tr>
68 </table>
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>
74 </xsl:if>
75 <div class="refsynopsisdiv">
76 <h2>Synopsis</h2>
77 <pre class="synopsis">
78 <xsl:apply-templates mode="synopsis" select="exports"/>
79 </pre>
80 </div>
81 <div class="refsect1" lang="en">
82 <h2>Description</h2>
83 </div>
84 <div class="refsect1" lang="en">
85 <h2>Details</h2>
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]"/>
92 </div>
93 </div>
94 </body>
95 </html>
96 </xsl:document>
97 </xsl:template>
98 <xsl:template match="/api/symbols">
99 <functions>
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"/>
107 </functions>
108 </xsl:template>
109 <xsl:template match="/api/symbols/functype">
110 <function name="{@name}" link="libvirt-{@file}.html#{@name}"/>
111 </xsl:template>
112 <xsl:template match="/api/symbols/function">
113 <function name="{@name} ()" link="libvirt-{@file}.html#{@name}"/>
114 </xsl:template>
115 <xsl:template match="/api/symbols/typedef">
116 <function name="{@name}" link="libvirt-{@file}.html#{@name}"/>
117 </xsl:template>
118 <xsl:template match="/api/symbols/enum">
119 <function name="{@name}" link="libvirt-{@file}.html#{@name}"/>
120 </xsl:template>
121 <xsl:template match="/api/symbols/struct">
122 <function name="{@name}" link="libvirt-{@file}.html#{@name}"/>
123 </xsl:template>
124 <xsl:template match="/api/symbols/macro">
125 <function name="{@name}" link="libvirt-{@file}.html#{@name}"/>
126 </xsl:template>
127 <xsl:template match="/api/symbols/variable">
128 <function name="{@name}" link="libvirt-{@file}.html#{@name}"/>
129 </xsl:template>
131 </xsl:stylesheet>