Fix transformation for global classes

[SVN r22015]
This commit is contained in:
Douglas Gregor 2004-01-28 02:46:07 +00:00
parent 789a197ea5
commit 7e96894815
2 changed files with 20 additions and 11 deletions

View File

@ -106,11 +106,18 @@
</xsl:call-template>
</xsl:if>
<xsl:apply-templates mode="synopsis" select="namespace">
<xsl:with-param name="indentation" select="0"/>
</xsl:apply-templates>
<xsl:apply-templates mode="reference"/>
<xsl:if test="namespace|class|struct|union">
<xsl:call-template name="synopsis">
<xsl:with-param name="text">
<xsl:apply-templates mode="synopsis"
select="namespace|class|struct|union">
<xsl:with-param name="indentation" select="0"/>
</xsl:apply-templates>
</xsl:with-param>
</xsl:call-template>
</xsl:if>
<xsl:apply-templates mode="namespace-reference"/>
</section>
</xsl:if>
</xsl:template>
@ -389,4 +396,10 @@ Error: XSL template 'link-or-anchor' called with invalid link-type '<xsl:value-o
<!-- Swallow using-namespace and using-class directives along with
last-revised elements -->
<xsl:template match="using-namespace|using-class|last-revised"/>
<!-- If there is no "namespace-reference" mode, forward to
"reference" mode -->
<xsl:template match="*" mode="namespace-reference">
<xsl:apply-templates select="." mode="reference"/>
</xsl:template>
</xsl:stylesheet>

View File

@ -60,12 +60,8 @@
<xsl:choose>
<xsl:when test="count(ancestor::namespace)=0">
<xsl:call-template name="synopsis">
<xsl:with-param name="text">
<xsl:call-template name="namespace-synopsis">
<xsl:with-param name="indentation" select="$indentation"/>
</xsl:call-template>
</xsl:with-param>
<xsl:call-template name="namespace-synopsis">
<xsl:with-param name="indentation" select="$indentation"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>