When function names are unique, use them as IDs

[SVN r24675]
This commit is contained in:
Douglas Gregor 2004-08-23 16:06:50 +00:00
parent 39d42d149d
commit ca5f8e4d93

View File

@ -8,6 +8,17 @@
<xsl:key name="macros" match="macro" use="@name"/>
<xsl:key name="headers" match="header" use="@name"/>
<xsl:template match="function|overloaded-function" mode="generate.id">
<xsl:choose>
<xsl:when test="count(key('functions', @name))=1">
<xsl:value-of select="@name"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="generate-id(.)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="classname" mode="annotation">
<!-- Determine the (possibly qualified) class name we are looking for -->
<xsl:variable name="fullname">