Fix up function IDs and spacing issues

[SVN r24679]
This commit is contained in:
Douglas Gregor 2004-08-23 21:12:34 +00:00
parent f73de4252d
commit 3faeceab84
2 changed files with 13 additions and 6 deletions

View File

@ -9,9 +9,16 @@
<xsl:key name="headers" match="header" use="@name"/>
<xsl:template match="function|overloaded-function" mode="generate.id">
<xsl:variable name="name" select="normalize-space(@name)"/>
<xsl:variable name="translated-name"
select="translate($name,
'~!%^&amp;*()[].,&lt;&gt;|/ +-=',
'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX')"/>
<xsl:choose>
<xsl:when test="count(key('functions', @name))=1">
<xsl:value-of select="@name"/>
<xsl:when test="count(key('functions', $name))=1
and ($translated-name=$name)">
<xsl:value-of select="$name"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="generate-id(.)"/>

View File

@ -439,7 +439,7 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
<xsl:when test="string(type)='class' or string(type)='typename'">
<template-type-parameter>
<xsl:attribute name="name">
<xsl:value-of select="string(declname)"/>
<xsl:value-of select="normalize-space(string(declname))"/>
</xsl:attribute>
<xsl:if test="defval">
<default>
@ -452,7 +452,7 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
<xsl:otherwise>
<template-nontype-parameter>
<xsl:attribute name="name">
<xsl:value-of select="string(declname)"/>
<xsl:value-of select="normalize-space(string(declname))"/>
</xsl:attribute>
<type>
<xsl:apply-templates select="type"/>
@ -705,7 +705,7 @@ Cannot handle memberdef element with kind=<xsl:value-of select="@kind"/>
<parameter>
<!-- Parameter name -->
<xsl:attribute name="name">
<xsl:value-of select="declname/text()"/>
<xsl:value-of select="normalize-space(declname/text())"/>
</xsl:attribute>
<!-- Parameter type -->
@ -729,7 +729,7 @@ Cannot handle memberdef element with kind=<xsl:value-of select="@kind"/>
<!-- Parameter description -->
<xsl:variable name="name">
<xsl:value-of select="declname/text()"/>
<xsl:value-of select="normalize-space(declname/text())"/>
</xsl:variable>
<xsl:apply-templates select="../detaileddescription/para/parameterlist[attribute::kind='param']/parameterdescription"