mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
Fix transformation for global classes
[SVN r22015]
This commit is contained in:
parent
789a197ea5
commit
7e96894815
@ -106,11 +106,18 @@
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:apply-templates mode="synopsis" select="namespace">
|
||||
<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="reference"/>
|
||||
<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>
|
||||
|
@ -60,13 +60,9 @@
|
||||
|
||||
<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>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text> </xsl:text>
|
||||
|
Loading…
x
Reference in New Issue
Block a user