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:call-template>
</xsl:if> </xsl:if>
<xsl:apply-templates mode="synopsis" select="namespace"> <xsl:if test="namespace|class|struct|union">
<xsl:with-param name="indentation" select="0"/> <xsl:call-template name="synopsis">
</xsl:apply-templates> <xsl:with-param name="text">
<xsl:apply-templates mode="synopsis"
<xsl:apply-templates mode="reference"/> 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> </section>
</xsl:if> </xsl:if>
</xsl:template> </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 <!-- Swallow using-namespace and using-class directives along with
last-revised elements --> last-revised elements -->
<xsl:template match="using-namespace|using-class|last-revised"/> <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> </xsl:stylesheet>

View File

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