summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/tagfile-to-devhelp2.xsl15
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>