aboutsummaryrefslogtreecommitdiffstats
path: root/doc/publican/xsl/doxygen-to-publican.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'doc/publican/xsl/doxygen-to-publican.xsl')
-rw-r--r--doc/publican/xsl/doxygen-to-publican.xsl31
1 files changed, 18 insertions, 13 deletions
diff --git a/doc/publican/xsl/doxygen-to-publican.xsl b/doc/publican/xsl/doxygen-to-publican.xsl
index 0387372..d7f2959 100644
--- a/doc/publican/xsl/doxygen-to-publican.xsl
+++ b/doc/publican/xsl/doxygen-to-publican.xsl
@@ -9,9 +9,7 @@
<section id="{$which}-Functions">
<title>Functions</title>
<para />
- <variablelist>
- <xsl:apply-templates select="/doxygen/compounddef[@kind='file']/sectiondef/memberdef" />
- </variablelist>
+ <xsl:apply-templates select="/doxygen/compounddef[@kind='file']/sectiondef" />
</section>
</xsl:template>
@@ -99,9 +97,10 @@
<xsl:apply-templates select="para" />
</xsl:template>
-<!-- methods -->
-<xsl:template match="memberdef" >
- <xsl:if test="(@kind = 'function' and
+<xsl:template match="sectiondef">
+ <xsl:variable name="docitems"
+ select="memberdef[
+ (@kind = 'function' and
(@static = 'no' or
substring(location/@bodyfile,
string-length(location/@bodyfile) - 1,
@@ -110,7 +109,18 @@
and @prot = 'public'
)
or
- (@kind != 'function' and normalize-space(briefdescription) != '')">
+ (@kind != 'function' and normalize-space(briefdescription) != '')
+ ]" />
+ <xsl:if test="$docitems">
+ <variablelist>
+ <!-- Apply memberdef template -->
+ <xsl:apply-templates select="$docitems" />
+ </variablelist>
+ </xsl:if>
+</xsl:template>
+
+<!-- methods -->
+<xsl:template match="memberdef" >
<varlistentry id="{$which}-{@id}">
<term>
<xsl:value-of select="name"/>
@@ -125,7 +135,6 @@
<xsl:apply-templates select="detaileddescription" />
</listitem>
</varlistentry>
- </xsl:if>
</xsl:template>
<!-- classes -->
@@ -145,11 +154,7 @@
<para />
</xsl:otherwise>
</xsl:choose>
- <xsl:if test="sectiondef/memberdef[@kind='function' and @static='no']">
- <variablelist>
- <xsl:apply-templates select="sectiondef/memberdef" />
- </variablelist>
- </xsl:if>
+ <xsl:apply-templates select="sectiondef" />
</section>
</xsl:template>
</xsl:stylesheet>