mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
doxygen2boostbook.xsl:
- Only emit one copy of the definition for an enum [SVN r22757]
This commit is contained in:
parent
6b906dcc7d
commit
dcc7a747e1
@ -198,22 +198,27 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
|
|||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="enum">
|
<xsl:template name="enum">
|
||||||
<xsl:variable name="name">
|
<xsl:param name="in-file"/>
|
||||||
<xsl:call-template name="strip-qualifiers">
|
|
||||||
<xsl:with-param name="name" select="name"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:variable>
|
|
||||||
|
|
||||||
<enum>
|
<xsl:if test="contains(string(location/attribute::file),
|
||||||
<xsl:attribute name="name">
|
concat('/', $in-file))">
|
||||||
<xsl:value-of select="$name"/>
|
<xsl:variable name="name">
|
||||||
</xsl:attribute>
|
<xsl:call-template name="strip-qualifiers">
|
||||||
|
<xsl:with-param name="name" select="name"/>
|
||||||
<xsl:apply-templates select="enumvalue"/>
|
</xsl:call-template>
|
||||||
|
</xsl:variable>
|
||||||
<xsl:apply-templates select="briefdescription" mode="passthrough"/>
|
|
||||||
<xsl:apply-templates select="detaileddescription" mode="passthrough"/>
|
<enum>
|
||||||
</enum>
|
<xsl:attribute name="name">
|
||||||
|
<xsl:value-of select="$name"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
|
||||||
|
<xsl:apply-templates select="enumvalue"/>
|
||||||
|
|
||||||
|
<xsl:apply-templates select="briefdescription" mode="passthrough"/>
|
||||||
|
<xsl:apply-templates select="detaileddescription" mode="passthrough"/>
|
||||||
|
</enum>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="enumvalue">
|
<xsl:template match="enumvalue">
|
||||||
@ -562,7 +567,9 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
|
|||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="@kind='enum'">
|
<xsl:when test="@kind='enum'">
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates>
|
||||||
|
<xsl:with-param name="in-file" select="$in-file"/>
|
||||||
|
</xsl:apply-templates>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="@kind='user-defined'">
|
<xsl:when test="@kind='user-defined'">
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
@ -640,7 +647,9 @@ Cannot handle sectiondef with kind=<xsl:value-of select="@kind"/>
|
|||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="@kind='enum'">
|
<xsl:when test="@kind='enum'">
|
||||||
<xsl:call-template name="enum"/>
|
<xsl:call-template name="enum">
|
||||||
|
<xsl:with-param name="in-file" select="$in-file"/>
|
||||||
|
</xsl:call-template>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:when test="@kind='variable'">
|
<xsl:when test="@kind='variable'">
|
||||||
<xsl:call-template name="variable"/>
|
<xsl:call-template name="variable"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user