[mm-common] Do not extract keywords from Doxygen groups
- From: Daniel Elstner <daniel src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [mm-common] Do not extract keywords from Doxygen groups
- Date: Wed, 2 Sep 2009 12:08:11 +0000 (UTC)
commit fddc449f8aff363d5dc706d40fee33b497ca9a39
Author: Daniel Elstner <danielk openismus com>
Date: Wed Sep 2 13:56:53 2009 +0200
Do not extract keywords from Doxygen groups
* util/tagfile-to-devhelp2.xsl (functions): Only list members of
compounds which correspond to a C++ language construct, i.e. a class
or a namespace. Other Doxygen compounds like groups or files do not
exist at the language level, and their names should not be used like
namespace prefixes.
util/tagfile-to-devhelp2.xsl | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/util/tagfile-to-devhelp2.xsl b/util/tagfile-to-devhelp2.xsl
index 8dd55ec..267f049 100644
--- a/util/tagfile-to-devhelp2.xsl
+++ b/util/tagfile-to-devhelp2.xsl
@@ -41,8 +41,8 @@
</sub>
</chapters>
<functions>
- <xsl:apply-templates select="tagfile/compound|tagfile/compound/member" mode="keyword">
- <xsl:sort lang="en" select="concat(../name, '::', name)"/>
+ <xsl:apply-templates select="tagfile/compound[ kind='namespace' or @kind='class' or @kind='struct']" mode="compound">
+ <xsl:sort lang="en" select="name"/>
</xsl:apply-templates>
</functions>
</book>
@@ -52,9 +52,18 @@
<sub name="{name}" link="{filename}"/>
</xsl:template>
- <xsl:template match="compound[ kind='class' or @kind='struct']" mode="keyword">
+ <xsl:template match="compound[ kind='namespace']" mode="compound">
+ <xsl:apply-templates select="member" mode="keyword">
+ <xsl:sort lang="en" select="name"/>
+ </xsl:apply-templates>
+ </xsl:template>
+ <xsl:template match="compound[ kind='class' or @kind='struct']" mode="compound">
<keyword type="struct" name="{name}" link="{filename}"/>
+ <xsl:apply-templates select="member" mode="keyword">
+ <xsl:sort lang="en" select="name"/>
+ </xsl:apply-templates>
</xsl:template>
+
<xsl:template match="member[ kind='function' or @kind='typedef']" mode="keyword">
<keyword type="{ kind}" xsl:use-attribute-sets="keyword-member"/>
</xsl:template>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]