2005-12-07 13:45:20 +00:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
|
|
Stylesheet to generate the HTML documentation from an XML API descriptions:
|
2006-02-09 17:45:11 +00:00
|
|
|
xsltproc newapi.xsl libvirt-api.xml
|
2005-12-07 13:45:20 +00:00
|
|
|
|
|
|
|
Daniel Veillard
|
|
|
|
-->
|
|
|
|
<xsl:stylesheet version="1.0"
|
2013-05-07 10:18:10 +00:00
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:html="http://www.w3.org/1999/xhtml"
|
2005-12-07 13:45:20 +00:00
|
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
xmlns:exsl="http://exslt.org/common"
|
|
|
|
xmlns:str="http://exslt.org/strings"
|
|
|
|
extension-element-prefixes="exsl str"
|
|
|
|
exclude-result-prefixes="exsl str">
|
|
|
|
|
|
|
|
<!-- Import the main part of the site stylesheets -->
|
2008-04-23 17:08:31 +00:00
|
|
|
<xsl:import href="page.xsl"/>
|
2005-12-07 13:45:20 +00:00
|
|
|
|
|
|
|
<!-- Build keys for all symbols -->
|
|
|
|
<xsl:key name="symbols" match="/api/symbols/*" use="@name"/>
|
|
|
|
|
|
|
|
<!-- the target directory for the HTML output -->
|
|
|
|
<xsl:variable name="htmldir">html</xsl:variable>
|
|
|
|
|
2013-08-07 12:03:50 +00:00
|
|
|
<xsl:template name="aclinfo">
|
2023-02-21 14:05:44 +00:00
|
|
|
<xsl:param name="acl"/>
|
2013-08-07 12:03:50 +00:00
|
|
|
|
2024-02-22 12:29:07 +00:00
|
|
|
<xsl:if test="count($acl/check) > 0 or count($acl/filter) > 0">
|
|
|
|
<div class="acl">
|
|
|
|
<xsl:if test="count($acl/check) > 0">
|
|
|
|
<h5>Access control parameter checks</h5>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Object</th>
|
|
|
|
<th>Permission</th>
|
|
|
|
<th>Condition</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<xsl:apply-templates select="$acl/check" mode="acl"/>
|
|
|
|
</table>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="count($acl/filter) > 0">
|
|
|
|
<h5>Access control return value filters</h5>
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Object</th>
|
|
|
|
<th>Permission</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<xsl:apply-templates select="$acl/filter" mode="acl"/>
|
|
|
|
</table>
|
|
|
|
</xsl:if>
|
|
|
|
</div>
|
2013-08-07 12:03:50 +00:00
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="check" mode="acl">
|
|
|
|
<tr>
|
2013-08-08 10:51:01 +00:00
|
|
|
<td><a href="../acl.html#object_{@object}"><xsl:value-of select="@object"/></a></td>
|
|
|
|
<td><a href="../acl.html#perm_{@object}_{@perm}"><xsl:value-of select="@perm"/></a></td>
|
2013-08-07 12:03:50 +00:00
|
|
|
<xsl:choose>
|
2024-02-29 13:22:58 +00:00
|
|
|
<xsl:when test="@flags != ''">
|
2013-08-07 12:03:50 +00:00
|
|
|
<td><xsl:value-of select="@flags"/></td>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<td>-</td>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="filter" mode="acl">
|
|
|
|
<tr>
|
|
|
|
<td><xsl:value-of select="@object"/></td>
|
|
|
|
<td><xsl:value-of select="@perm"/></td>
|
|
|
|
</tr>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
2005-12-07 13:45:20 +00:00
|
|
|
<!-- This is convoluted but needed to force the current document to
|
|
|
|
be the API one and not the result tree from the tokenize() result,
|
|
|
|
because the keys are only defined on the main document -->
|
|
|
|
<xsl:template mode="dumptoken" match='*'>
|
|
|
|
<xsl:param name="token"/>
|
2011-08-11 12:44:00 +00:00
|
|
|
<xsl:variable name="stem" select="translate($token, '(),.:;@', '')"/>
|
|
|
|
<xsl:variable name="ref" select="key('symbols', $stem)"/>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="$ref">
|
2011-08-11 12:44:00 +00:00
|
|
|
<xsl:value-of select="substring-before($token, $stem)"/>
|
|
|
|
<a href="libvirt-{$ref/@file}.html#{$ref/@name}"><xsl:value-of select="$stem"/></a>
|
|
|
|
<xsl:value-of select="substring-after($token, $stem)"/>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:when>
|
2013-01-14 12:37:02 +00:00
|
|
|
<xsl:when test="starts-with($token, 'http://')">
|
|
|
|
<a href="{$token}">
|
|
|
|
<xsl:value-of select="$token"/>
|
|
|
|
</a>
|
|
|
|
</xsl:when>
|
2022-08-23 11:13:52 +00:00
|
|
|
<xsl:when test="starts-with($token, 'https://')">
|
|
|
|
<a href="{$token}">
|
|
|
|
<xsl:value-of select="$token"/>
|
|
|
|
</a>
|
|
|
|
</xsl:when>
|
2013-01-14 12:37:02 +00:00
|
|
|
<xsl:when test="starts-with($token, '<http://') and contains($token, '>')">
|
|
|
|
<xsl:variable name="link"
|
|
|
|
select="substring(substring-before($token, '>'), 2)"/>
|
|
|
|
<a href="{$link}">
|
|
|
|
<xsl:value-of select="$link"/>
|
|
|
|
</a>
|
|
|
|
<xsl:value-of select="substring-after($token, '>')"/>
|
|
|
|
</xsl:when>
|
2021-09-10 12:55:02 +00:00
|
|
|
<xsl:when test="contains($token, '@')">
|
|
|
|
<xsl:variable name="prologue" select="substring-before($token, '@')"/>
|
|
|
|
<xsl:value-of select="$prologue"/>
|
|
|
|
<code><xsl:value-of select="$stem"/></code>
|
|
|
|
<xsl:value-of select="substring($token, string-length($prologue) + string-length($stem) + 2)"/>
|
|
|
|
</xsl:when>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="$token"/>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<!-- dumps a string, making cross-reference links -->
|
|
|
|
<xsl:template name="dumptext">
|
|
|
|
<xsl:param name="text"/>
|
|
|
|
<xsl:variable name="ctxt" select='.'/>
|
|
|
|
<!-- <xsl:value-of select="$text"/> -->
|
2011-08-11 12:44:00 +00:00
|
|
|
<xsl:for-each select="str:tokenize($text, ' 	 ')">
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:apply-templates select="$ctxt" mode='dumptoken'>
|
|
|
|
<xsl:with-param name="token" select="string(.)"/>
|
|
|
|
</xsl:apply-templates>
|
|
|
|
<xsl:if test="position() != last()">
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:for-each>
|
|
|
|
</xsl:template>
|
|
|
|
|
2013-01-22 12:45:11 +00:00
|
|
|
|
|
|
|
<!-- process blocks of text. blocks are separated by two consecutive line -->
|
|
|
|
<!-- breaks. -->
|
|
|
|
<!-- -->
|
|
|
|
<!-- blocks indented with at least 2 spaces are considered code blocks. -->
|
|
|
|
<!-- -->
|
|
|
|
<!-- consecutive code blocks are collapsed into a single code block. -->
|
|
|
|
<xsl:template name="formatblock">
|
|
|
|
<xsl:param name="block"/>
|
|
|
|
<xsl:param name="rest"/>
|
|
|
|
|
|
|
|
<xsl:variable name="multipleCodeBlocks"
|
|
|
|
select="starts-with($block, ' ') and starts-with($rest, ' ')"/>
|
|
|
|
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="$multipleCodeBlocks">
|
|
|
|
<xsl:call-template name="formatblock">
|
|
|
|
<xsl:with-param name="block">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="contains($rest, '

')">
|
|
|
|
<xsl:value-of select="concat($block, '
 
',
|
|
|
|
substring-before($rest, '

'))" />
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="concat($block, '
 
', $rest)" />
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:with-param>
|
|
|
|
<xsl:with-param name="rest" select="substring-after($rest, '

')"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:when test="starts-with($block, ' ')">
|
|
|
|
<pre class="code"><xsl:for-each select="str:tokenize($block, '
')">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="starts-with(., ' ')">
|
|
|
|
<xsl:value-of select="substring(., 3)"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="."/>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
<xsl:if test="position() != last()">
|
|
|
|
<xsl:text>
</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:for-each></pre>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<p>
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="$block"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</p>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
<xsl:if test="not($multipleCodeBlocks)">
|
|
|
|
<xsl:call-template name="formattext">
|
|
|
|
<xsl:with-param name="text" select="$rest"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
2013-01-08 13:55:12 +00:00
|
|
|
<xsl:template name="formattext">
|
|
|
|
<xsl:param name="text" />
|
|
|
|
|
|
|
|
<xsl:if test="$text">
|
|
|
|
<xsl:variable name="head" select="substring-before($text, '

')"/>
|
|
|
|
<xsl:variable name="rest" select="substring-after($text, '

')"/>
|
|
|
|
|
2013-01-22 12:45:11 +00:00
|
|
|
<xsl:call-template name="formatblock">
|
|
|
|
<xsl:with-param name="block">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="contains($text, '

')">
|
|
|
|
<xsl:value-of select="$head"/>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
|
|
|
<xsl:value-of select="$text"/>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:with-param>
|
|
|
|
<xsl:with-param name="rest" select="$rest"/>
|
|
|
|
</xsl:call-template>
|
2013-01-08 13:55:12 +00:00
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
2024-02-29 12:06:39 +00:00
|
|
|
<xsl:template name="formattextdiv">
|
|
|
|
<xsl:param name="text"/>
|
|
|
|
<xsl:param name="divclass"/>
|
|
|
|
|
|
|
|
<xsl:if test="$text">
|
|
|
|
<div class="{$divclass}">
|
|
|
|
<xsl:call-template name="formattext">
|
|
|
|
<xsl:with-param name="text" select="$text"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</div>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:template match="macro" mode="toc">
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="directive">#define</span><xsl:text> </xsl:text>
|
2008-04-23 17:08:31 +00:00
|
|
|
<a href="#{@name}"><xsl:value-of select="@name"/></a>
|
|
|
|
<xsl:text>
|
|
|
|
</xsl:text>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="variable" mode="toc">
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="type">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="string(@type)"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</span>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:text> </xsl:text>
|
2019-08-27 15:21:32 +00:00
|
|
|
<a id="{@name}"></a>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:value-of select="@name"/>
|
|
|
|
<xsl:text>
|
|
|
|
</xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="typedef" mode="toc">
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="keyword">typedef</span>
|
|
|
|
<xsl:text> </xsl:text><xsl:variable name="name" select="string(@name)"/>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="@type = 'enum'">
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="keyword">enum</span><xsl:text> </xsl:text>
|
2005-12-07 13:45:20 +00:00
|
|
|
<a href="#{$name}"><xsl:value-of select="$name"/></a>
|
|
|
|
<xsl:text>
|
|
|
|
</xsl:text>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="type">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="@type"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</span>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:text> </xsl:text>
|
2023-05-24 08:22:47 +00:00
|
|
|
<a href="#{$name}"><xsl:value-of select="$name"/></a>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:text>
|
|
|
|
</xsl:text>
|
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:template>
|
|
|
|
|
2019-01-24 11:23:15 +00:00
|
|
|
<xsl:template name="enumvalue">
|
|
|
|
<xsl:param name="value" select="@value"/>
|
|
|
|
<xsl:param name="valuehex" select="@value_hex"/>
|
|
|
|
<xsl:param name="valuebitshift" select="@value_bitshift"/>
|
|
|
|
<xsl:value-of select="@value"/>
|
|
|
|
<xsl:if test="$valuehex != '' or $valuebitshift != ''">
|
|
|
|
<xsl:text> (</xsl:text>
|
|
|
|
<xsl:if test="$valuehex != ''">
|
|
|
|
<xsl:value-of select="@value_hex"/>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="$valuebitshift != ''">
|
|
|
|
<xsl:text>; 1 << </xsl:text>
|
|
|
|
<xsl:value-of select="@value_bitshift"/>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:text>)</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:template match="typedef[@type = 'enum']">
|
|
|
|
<xsl:variable name="name" select="string(@name)"/>
|
2019-08-15 08:14:08 +00:00
|
|
|
<h3><a id="{$name}"><code><xsl:value-of select="$name"/></code></a></h3>
|
2024-02-29 12:06:39 +00:00
|
|
|
<xsl:call-template name="formattextdiv">
|
2023-05-23 16:46:58 +00:00
|
|
|
<xsl:with-param name="text" select="info"/>
|
2024-02-29 12:06:39 +00:00
|
|
|
<xsl:with-param name="divclass">description</xsl:with-param>
|
2023-05-23 16:46:58 +00:00
|
|
|
</xsl:call-template>
|
2008-04-23 17:08:31 +00:00
|
|
|
<div class="api">
|
|
|
|
<pre>
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="keyword">enum</span><xsl:text> </xsl:text>
|
2008-04-23 17:08:31 +00:00
|
|
|
<xsl:value-of select="$name"/>
|
|
|
|
<xsl:text> {
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:text>
|
2008-04-23 17:08:31 +00:00
|
|
|
</pre>
|
|
|
|
<table>
|
|
|
|
<xsl:for-each select="/api/symbols/enum[@type = $name]">
|
|
|
|
<xsl:sort select="@value" data-type="number" order="ascending"/>
|
|
|
|
<tr>
|
2019-08-27 15:21:32 +00:00
|
|
|
<td><a id="{@name}"><xsl:value-of select="@name"/></a></td>
|
2008-04-23 17:08:31 +00:00
|
|
|
<td><xsl:text> = </xsl:text></td>
|
2024-02-29 13:11:57 +00:00
|
|
|
<td class="enumvalue"><xsl:call-template name="enumvalue"/></td>
|
2017-07-22 07:12:36 +00:00
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test="@info != ''">
|
|
|
|
<td>
|
|
|
|
<div class="comment">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="@info"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
2024-02-29 13:11:57 +00:00
|
|
|
<td><xsl:comment> </xsl:comment></td>
|
2017-07-22 07:12:36 +00:00
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
2008-04-23 17:08:31 +00:00
|
|
|
</tr>
|
|
|
|
</xsl:for-each>
|
|
|
|
</table>
|
|
|
|
<pre>
|
|
|
|
<xsl:text>}
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:text>
|
2008-04-23 17:08:31 +00:00
|
|
|
</pre>
|
|
|
|
</div>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
2023-05-24 08:22:47 +00:00
|
|
|
<xsl:template match="typedef">
|
|
|
|
<xsl:variable name="name" select="string(@name)"/>
|
|
|
|
<xsl:variable name="type" select="string(@type)"/>
|
|
|
|
<h3><a id="{$name}"><code><xsl:value-of select="$name"/></code></a></h3>
|
|
|
|
<div class="api">
|
|
|
|
<pre>
|
|
|
|
<span class="keyword">typedef</span><xsl:text> </xsl:text>
|
|
|
|
<xsl:value-of select="$type"/>
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
<xsl:value-of select="$name"/>
|
|
|
|
<xsl:text>;</xsl:text>
|
|
|
|
</pre>
|
|
|
|
</div>
|
2024-02-29 12:06:39 +00:00
|
|
|
<xsl:call-template name="formattextdiv">
|
2023-05-24 08:22:47 +00:00
|
|
|
<xsl:with-param name="text" select="info"/>
|
2024-02-29 12:06:39 +00:00
|
|
|
<xsl:with-param name="divclass">description</xsl:with-param>
|
2023-05-24 08:22:47 +00:00
|
|
|
</xsl:call-template>
|
|
|
|
</xsl:template>
|
|
|
|
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:template match="struct" mode="toc">
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="keyword">typedef</span><xsl:text> </xsl:text>
|
|
|
|
<span class="type"><xsl:value-of select="@type"/></span>
|
2008-04-23 17:08:31 +00:00
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
<a href="#{@name}"><xsl:value-of select="@name"/></a>
|
|
|
|
<xsl:text>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="struct">
|
2019-08-15 08:14:08 +00:00
|
|
|
<h3><a id="{@name}"><code><xsl:value-of select="@name"/></code></a></h3>
|
2008-04-23 17:08:31 +00:00
|
|
|
<div class="api">
|
|
|
|
<pre>
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="keyword">struct </span>
|
2008-04-23 17:08:31 +00:00
|
|
|
<xsl:value-of select="@name"/>
|
2013-01-17 15:00:10 +00:00
|
|
|
<xsl:text> {
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:text>
|
2008-04-23 17:08:31 +00:00
|
|
|
</pre>
|
2013-01-22 10:11:11 +00:00
|
|
|
<xsl:if test="field">
|
|
|
|
<table>
|
|
|
|
<xsl:for-each select="field">
|
|
|
|
<xsl:choose>
|
|
|
|
<xsl:when test='@type = "union"'>
|
2024-02-29 12:50:09 +00:00
|
|
|
<tr><td colspan="3"><span class="keyword">union</span> {</td></tr>
|
2013-01-22 10:11:11 +00:00
|
|
|
<tr>
|
|
|
|
<td><table>
|
|
|
|
<xsl:for-each select="union/field">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<span class="type">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="@type"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td><xsl:value-of select="@name"/></td>
|
2024-02-29 12:50:09 +00:00
|
|
|
<td>
|
|
|
|
<xsl:if test="@info != ''">
|
2013-01-22 10:11:11 +00:00
|
|
|
<div class="comment">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="@info"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</div>
|
2024-02-29 12:50:09 +00:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:comment> </xsl:comment>
|
|
|
|
</td>
|
2013-01-22 10:11:11 +00:00
|
|
|
</tr>
|
|
|
|
</xsl:for-each>
|
|
|
|
</table></td>
|
2024-02-29 12:50:09 +00:00
|
|
|
<td colspan="2"><xsl:comment> </xsl:comment></td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td>}</td>
|
|
|
|
<td><xsl:value-of select="@name"/></td>
|
2013-01-22 10:11:11 +00:00
|
|
|
<td>
|
2024-02-29 12:50:09 +00:00
|
|
|
<xsl:if test="@info != ''">
|
|
|
|
<div class="comment">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="@info"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</div>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:comment> </xsl:comment>
|
2013-01-22 10:11:11 +00:00
|
|
|
</td>
|
2024-02-29 12:50:09 +00:00
|
|
|
</tr>
|
2013-01-22 10:11:11 +00:00
|
|
|
</xsl:when>
|
|
|
|
<xsl:otherwise>
|
2011-06-20 03:25:34 +00:00
|
|
|
<tr>
|
|
|
|
<td>
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="type">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="@type"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</span>
|
2011-06-20 03:25:34 +00:00
|
|
|
</td>
|
|
|
|
<td><xsl:value-of select="@name"/></td>
|
2024-02-29 12:50:09 +00:00
|
|
|
<td>
|
|
|
|
<xsl:if test="@info != ''">
|
2013-01-17 15:00:10 +00:00
|
|
|
<div class="comment">
|
|
|
|
<xsl:call-template name="dumptext">
|
2013-01-22 10:11:11 +00:00
|
|
|
<xsl:with-param name="text" select="@info"/>
|
2013-01-17 15:00:10 +00:00
|
|
|
</xsl:call-template>
|
|
|
|
</div>
|
2024-02-29 12:50:09 +00:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:comment> </xsl:comment>
|
|
|
|
</td>
|
2011-06-20 03:25:34 +00:00
|
|
|
</tr>
|
2013-01-22 10:11:11 +00:00
|
|
|
</xsl:otherwise>
|
|
|
|
</xsl:choose>
|
|
|
|
</xsl:for-each>
|
|
|
|
</table>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="not(field)">
|
|
|
|
<div class="undisclosed">The content of this structure is not made public by the API</div>
|
|
|
|
</xsl:if>
|
2008-04-23 17:08:31 +00:00
|
|
|
<pre>
|
|
|
|
<xsl:text>
|
|
|
|
}
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:text>
|
2008-04-23 17:08:31 +00:00
|
|
|
</pre>
|
|
|
|
</div>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="macro">
|
|
|
|
<xsl:variable name="name" select="string(@name)"/>
|
2019-08-15 08:14:08 +00:00
|
|
|
<h3><a id="{$name}"><code><xsl:value-of select="$name"/></code></a></h3>
|
2013-01-17 15:00:10 +00:00
|
|
|
<pre class="api"><span class="directive">#define</span><xsl:text> </xsl:text><xsl:value-of select="$name"/></pre>
|
2024-02-29 12:06:39 +00:00
|
|
|
<xsl:call-template name="formattextdiv">
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:with-param name="text" select="info"/>
|
2024-02-29 12:06:39 +00:00
|
|
|
<xsl:with-param name="divclass">description</xsl:with-param>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:call-template>
|
2024-02-29 12:06:39 +00:00
|
|
|
<xsl:text>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="function" mode="toc">
|
|
|
|
<xsl:variable name="name" select="string(@name)"/>
|
|
|
|
<xsl:variable name="nlen" select="string-length($name)"/>
|
|
|
|
<xsl:variable name="tlen" select="string-length(return/@type)"/>
|
|
|
|
<xsl:variable name="blen" select="(($nlen + 8) - (($nlen + 8) mod 8)) + (($tlen + 8) - (($tlen + 8) mod 8))"/>
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="type">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="return/@type"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</span>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
<a href="#{@name}"><xsl:value-of select="@name"/></a>
|
|
|
|
<xsl:if test="$blen - 40 < -8">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="$blen - 40 < 0">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:text>	(</xsl:text>
|
|
|
|
<xsl:if test="not(arg)">
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="type">void</span>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:for-each select="arg">
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="type">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="@type"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</span>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
<xsl:value-of select="@name"/>
|
|
|
|
<xsl:if test="position() != last()">
|
|
|
|
<xsl:text>, </xsl:text><br/>
|
|
|
|
<xsl:if test="$blen - 40 > 8">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="$blen - 40 > 0">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:text>					 </xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:for-each>
|
2008-04-23 17:08:31 +00:00
|
|
|
<xsl:text>)
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="functype" mode="toc">
|
|
|
|
<xsl:variable name="name" select="string(@name)"/>
|
|
|
|
<xsl:variable name="nlen" select="string-length($name)"/>
|
|
|
|
<xsl:variable name="tlen" select="string-length(return/@type)"/>
|
|
|
|
<xsl:variable name="blen" select="(($nlen + 8) - (($nlen + 8) mod 8)) + (($tlen + 8) - (($tlen + 8) mod 8))"/>
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="keyword">typedef</span><xsl:text> </xsl:text>
|
2005-12-07 13:45:20 +00:00
|
|
|
<a href="#{$name}"><xsl:value-of select="$name"/></a>
|
|
|
|
<xsl:text>
|
|
|
|
</xsl:text>
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="type">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="return/@type"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</span>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
<a href="#{$name}"><xsl:value-of select="$name"/></a>
|
|
|
|
<xsl:if test="$blen - 40 < -8">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="$blen - 40 < 0">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:text>	(</xsl:text>
|
|
|
|
<xsl:if test="not(arg)">
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="type">void</span>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:for-each select="arg">
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="type">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="@type"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</span>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
<xsl:value-of select="@name"/>
|
|
|
|
<xsl:if test="position() != last()">
|
|
|
|
<xsl:text>, </xsl:text><br/>
|
|
|
|
<xsl:if test="$blen - 40 > 8">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="$blen - 40 > 0">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:text>					 </xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:for-each>
|
|
|
|
<xsl:text>)
|
|
|
|
</xsl:text>
|
|
|
|
<xsl:text>
|
|
|
|
</xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="functype">
|
|
|
|
<xsl:variable name="name" select="string(@name)"/>
|
|
|
|
<xsl:variable name="nlen" select="string-length($name)"/>
|
|
|
|
<xsl:variable name="tlen" select="string-length(return/@type)"/>
|
|
|
|
<xsl:variable name="blen" select="(($nlen + 8) - (($nlen + 8) mod 8)) + (($tlen + 8) - (($tlen + 8) mod 8))"/>
|
2019-08-15 08:14:08 +00:00
|
|
|
<h3><a id="{$name}"><code><xsl:value-of select="$name"/></code></a></h3>
|
2013-01-17 15:00:10 +00:00
|
|
|
<pre class="api">
|
|
|
|
<span class="keyword">typedef</span><xsl:text> </xsl:text>
|
|
|
|
<span class="type">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="return/@type"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</span>
|
2008-04-23 17:08:31 +00:00
|
|
|
<xsl:text>	(*</xsl:text>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:value-of select="@name"/>
|
|
|
|
<xsl:if test="$blen - 40 < -8">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="$blen - 40 < 0">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
2008-04-23 17:08:31 +00:00
|
|
|
<xsl:text>)	(</xsl:text>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:if test="not(arg)">
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="type">void</span>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:for-each select="arg">
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="type">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="@type"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</span>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
<xsl:value-of select="@name"/>
|
|
|
|
<xsl:if test="position() != last()">
|
2013-01-17 15:00:10 +00:00
|
|
|
<xsl:text>,
|
|
|
|
</xsl:text>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:if test="$blen - 40 > 8">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="$blen - 40 > 0">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:text>					 </xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:for-each>
|
|
|
|
<xsl:text>)
|
|
|
|
</xsl:text>
|
|
|
|
</pre>
|
2024-02-29 12:06:39 +00:00
|
|
|
<xsl:call-template name="formattextdiv">
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:with-param name="text" select="info"/>
|
2024-02-29 12:06:39 +00:00
|
|
|
<xsl:with-param name="divclass">description</xsl:with-param>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:call-template>
|
|
|
|
<xsl:if test="arg | return">
|
2013-01-17 15:00:11 +00:00
|
|
|
<dl class="variablelist">
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:for-each select="arg">
|
2013-01-17 15:00:11 +00:00
|
|
|
<dt><xsl:value-of select="@name"/></dt>
|
|
|
|
<dd>
|
|
|
|
<xsl:call-template name="dumptext">
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:with-param name="text" select="@info"/>
|
|
|
|
</xsl:call-template>
|
2013-01-17 15:00:11 +00:00
|
|
|
</dd>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:for-each>
|
|
|
|
<xsl:if test="return/@info">
|
2013-01-17 15:00:11 +00:00
|
|
|
<dt>Returns</dt>
|
|
|
|
<dd>
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="return/@info"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</dd>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:if>
|
2013-01-17 15:00:11 +00:00
|
|
|
</dl>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:if>
|
|
|
|
<br/>
|
|
|
|
<xsl:text>
|
|
|
|
</xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="function">
|
|
|
|
<xsl:variable name="name" select="string(@name)"/>
|
|
|
|
<xsl:variable name="nlen" select="string-length($name)"/>
|
|
|
|
<xsl:variable name="tlen" select="string-length(return/@type)"/>
|
|
|
|
<xsl:variable name="blen" select="(($nlen + 8) - (($nlen + 8) mod 8)) + (($tlen + 8) - (($tlen + 8) mod 8))"/>
|
2019-08-15 08:14:08 +00:00
|
|
|
<h3><a id="{$name}"><code><xsl:value-of select="$name"/></code></a></h3>
|
2013-01-17 15:00:10 +00:00
|
|
|
<pre class="api">
|
|
|
|
<span class="type">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="return/@type"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</span>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
<xsl:value-of select="@name"/>
|
|
|
|
<xsl:if test="$blen - 40 < -8">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="$blen - 40 < 0">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:text>	(</xsl:text>
|
|
|
|
<xsl:if test="not(arg)">
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="type">void</span>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:for-each select="arg">
|
2013-01-17 15:00:10 +00:00
|
|
|
<span class="type">
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="@type"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</span>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
<xsl:value-of select="@name"/>
|
|
|
|
<xsl:if test="position() != last()">
|
2013-01-17 15:00:10 +00:00
|
|
|
<xsl:text>,
|
|
|
|
</xsl:text>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:if test="$blen - 40 > 8">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="$blen - 40 > 0">
|
|
|
|
<xsl:text>	</xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:text>					 </xsl:text>
|
|
|
|
</xsl:if>
|
|
|
|
</xsl:for-each>
|
2013-01-17 15:00:10 +00:00
|
|
|
<xsl:text>)</xsl:text>
|
2005-12-07 13:45:20 +00:00
|
|
|
</pre>
|
2024-02-29 12:06:39 +00:00
|
|
|
<xsl:call-template name="formattextdiv">
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:with-param name="text" select="info"/>
|
2024-02-29 12:06:39 +00:00
|
|
|
<xsl:with-param name="divclass">description</xsl:with-param>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:call-template>
|
2024-02-29 12:06:39 +00:00
|
|
|
<xsl:text>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:text>
|
|
|
|
<xsl:if test="arg | return/@info">
|
2013-01-17 15:00:11 +00:00
|
|
|
<dl class="variablelist">
|
|
|
|
<xsl:for-each select="arg">
|
|
|
|
<dt><xsl:value-of select="@name"/></dt>
|
|
|
|
<dd>
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="@info"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</dd>
|
|
|
|
</xsl:for-each>
|
|
|
|
<xsl:if test="return/@info">
|
|
|
|
<dt>Returns</dt>
|
|
|
|
<dd>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="return/@info"/>
|
|
|
|
</xsl:call-template>
|
2013-01-17 15:00:11 +00:00
|
|
|
</dd>
|
|
|
|
</xsl:if>
|
|
|
|
</dl>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:if>
|
2024-02-22 12:29:07 +00:00
|
|
|
<xsl:call-template name="aclinfo">
|
|
|
|
<xsl:with-param name="acl" select="acls"/>
|
|
|
|
</xsl:call-template>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="exports" mode="toc">
|
|
|
|
<xsl:apply-templates select="key('symbols', string(@symbol))[1]" mode="toc"/>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="exports">
|
|
|
|
<xsl:apply-templates select="key('symbols', string(@symbol))[1]"/>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="description">
|
|
|
|
<xsl:if test="deprecated">
|
|
|
|
<h2 style="font-weight:bold;color:red;text-align:center">This module is deprecated</h2>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="description">
|
2013-01-14 12:37:02 +00:00
|
|
|
<p>
|
|
|
|
<xsl:call-template name="dumptext">
|
|
|
|
<xsl:with-param name="text" select="description"/>
|
|
|
|
</xsl:call-template>
|
|
|
|
</p>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:if>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="file">
|
|
|
|
<xsl:variable name="name" select="@name"/>
|
|
|
|
<xsl:variable name="title">Module <xsl:value-of select="$name"/> from <xsl:value-of select="/api/@name"/></xsl:variable>
|
2017-07-26 17:01:25 +00:00
|
|
|
<xsl:text disable-output-escaping="yes"><!DOCTYPE html>
|
|
|
|
</xsl:text>
|
2008-04-23 17:08:31 +00:00
|
|
|
<html>
|
|
|
|
<body>
|
2023-05-17 12:17:56 +00:00
|
|
|
<div class="document">
|
|
|
|
<h1><xsl:value-of select="$title"/></h1>
|
|
|
|
<xsl:call-template name="description"/>
|
|
|
|
<h2>Table of Contents</h2>
|
|
|
|
<xsl:if test="count(exports[@type='macro']) > 0">
|
|
|
|
<h3><a href="#macros">Macros</a></h3>
|
|
|
|
<pre class="api">
|
|
|
|
<xsl:apply-templates select="exports[@type='macro']" mode="toc">
|
|
|
|
<xsl:sort select='@symbol'/>
|
|
|
|
</xsl:apply-templates>
|
|
|
|
</pre>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="count(exports[@type='typedef']) > 0">
|
|
|
|
<h3><a href="#types">Types</a></h3>
|
|
|
|
<pre class="api">
|
|
|
|
<xsl:apply-templates select="exports[@type='typedef']" mode="toc">
|
|
|
|
<xsl:sort select='@symbol'/>
|
|
|
|
</xsl:apply-templates>
|
|
|
|
</pre>
|
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="count(exports[@type='function']) > 0">
|
|
|
|
<h3><a href="#functions">Functions</a></h3>
|
|
|
|
<pre class="api">
|
|
|
|
<xsl:apply-templates select="exports[@type='function']" mode="toc">
|
|
|
|
<xsl:sort select='@symbol'/>
|
|
|
|
</xsl:apply-templates>
|
|
|
|
</pre>
|
|
|
|
</xsl:if>
|
|
|
|
|
|
|
|
<h2>Description</h2>
|
|
|
|
|
|
|
|
<xsl:if test="count(exports[@type='macro']) > 0">
|
|
|
|
<h3><a id="macros">Macros</a></h3>
|
|
|
|
<xsl:apply-templates select="exports[@type='macro']">
|
2008-04-23 17:08:31 +00:00
|
|
|
<xsl:sort select='@symbol'/>
|
|
|
|
</xsl:apply-templates>
|
2023-05-17 12:17:56 +00:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="count(exports[@type='typedef']) > 0">
|
|
|
|
<h3><a id="types">Types</a></h3>
|
|
|
|
<xsl:apply-templates select="exports[@type='typedef']">
|
2022-11-03 09:45:56 +00:00
|
|
|
<xsl:sort select='@symbol'/>
|
|
|
|
</xsl:apply-templates>
|
2023-05-17 12:17:56 +00:00
|
|
|
</xsl:if>
|
|
|
|
<xsl:if test="count(exports[@type='function']) > 0">
|
|
|
|
<h3><a id="functions">Functions</a></h3>
|
|
|
|
<xsl:apply-templates select="exports[@type='function']">
|
2022-11-03 09:45:56 +00:00
|
|
|
<xsl:sort select='@symbol'/>
|
|
|
|
</xsl:apply-templates>
|
2023-05-17 12:17:56 +00:00
|
|
|
</xsl:if>
|
|
|
|
</div>
|
2008-04-23 17:08:31 +00:00
|
|
|
</body>
|
|
|
|
</html>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="file" mode="toc">
|
|
|
|
<xsl:variable name="name" select="@name"/>
|
|
|
|
<li>
|
2006-02-09 17:45:11 +00:00
|
|
|
<a href="libvirt-{$name}.html"><xsl:value-of select="$name"/></a>
|
2005-12-07 13:45:20 +00:00
|
|
|
<xsl:text>: </xsl:text>
|
|
|
|
<xsl:value-of select="summary"/>
|
|
|
|
</li>
|
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="/">
|
2008-04-23 17:08:31 +00:00
|
|
|
<xsl:for-each select="/api/files/file">
|
|
|
|
<xsl:variable name="subpage">
|
|
|
|
<xsl:apply-templates select="."/>
|
|
|
|
</xsl:variable>
|
|
|
|
|
|
|
|
<xsl:document
|
|
|
|
href="{concat($htmldir, '/libvirt-', @name, '.html')}"
|
|
|
|
method="xml"
|
2024-02-29 09:39:29 +00:00
|
|
|
omit-xml-declaration="yes"
|
|
|
|
encoding="UTF-8"
|
|
|
|
indent="yes">
|
2008-04-23 17:08:31 +00:00
|
|
|
<xsl:apply-templates select="exsl:node-set($subpage)" mode="page">
|
2017-07-26 15:04:37 +00:00
|
|
|
<xsl:with-param name="timestamp" select="$timestamp"/>
|
2024-02-07 16:05:49 +00:00
|
|
|
<xsl:with-param name="link_href_base" select="$href_base"/>
|
|
|
|
<xsl:with-param name="asset_href_base" select="$href_base"/>
|
2008-04-23 17:08:31 +00:00
|
|
|
</xsl:apply-templates>
|
|
|
|
</xsl:document>
|
|
|
|
</xsl:for-each>
|
2005-12-07 13:45:20 +00:00
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|