| 1 |
<xsl:stylesheet |
| 2 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 3 |
xmlns:fo="http://www.w3.org/1999/XSL/Format" |
| 4 |
version="1.0"> |
| 5 |
|
| 6 |
<xsl:output method="xml" version="1.0" indent="yes"/> |
| 7 |
|
| 8 |
<xsl:param name="prefix"></xsl:param> |
| 9 |
|
| 10 |
<xsl:template match="/"> |
| 11 |
<book title="D-Bus: A system for interprocess communication" |
| 12 |
name="dbus" |
| 13 |
link="{$prefix}/index.html" |
| 14 |
xmlns="http://www.devhelp.net/book" |
| 15 |
version="2" |
| 16 |
online="https://dbus.freedesktop.org/doc/" |
| 17 |
author="D-Bus contributors" |
| 18 |
language="c" |
| 19 |
> |
| 20 |
<chapters> |
| 21 |
<sub name="Tutorial" link="{$prefix}dbus-tutorial.html"/> |
| 22 |
<sub name="FAQ" link="{$prefix}dbus-faq.html"/> |
| 23 |
<sub name="Specification" link="{$prefix}dbus-specification.html"/> |
| 24 |
<sub name="API Reference" link="{$prefix}api/html/index.html"/> |
| 25 |
</chapters> |
| 26 |
|
| 27 |
<functions> |
| 28 |
<xsl:apply-templates select="doxygenindex/compound[@kind='group']/member[@kind='function']"/> |
| 29 |
</functions> |
| 30 |
</book> |
| 31 |
</xsl:template> |
| 32 |
|
| 33 |
<xsl:template match="member"> |
| 34 |
<xsl:param name="name"><xsl:value-of select="name"/></xsl:param> |
| 35 |
<xsl:param name="refid"><xsl:value-of select="@refid"/></xsl:param> |
| 36 |
<xsl:param name="before"><xsl:value-of select="substring-before($refid,'_1')"/></xsl:param> |
| 37 |
<xsl:param name="after"><xsl:value-of select="substring-after($refid,'_1')"/></xsl:param> |
| 38 |
<xsl:param name="link"><xsl:value-of select="$before"/>.html#<xsl:value-of select="$after"/></xsl:param> |
| 39 |
<xsl:if test="starts-with($name,'dbus') or starts-with($name, 'DBus')"> |
| 40 |
<xsl:if test="starts-with($refid,'group__') and contains($refid, '_1')"> |
| 41 |
<keyword xmlns="http://www.devhelp.net/book" type="function" name="{$name}" link="{$prefix}api/html/{$link}"/> |
| 42 |
</xsl:if> |
| 43 |
</xsl:if> |
| 44 |
</xsl:template> |
| 45 |
|
| 46 |
</xsl:stylesheet> |