mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
Support for macros
[SVN r20099]
This commit is contained in:
parent
ebb5873362
commit
4efef7ae26
@ -324,6 +324,37 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
|
|||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
|
<xsl:template match="memberdef" mode="toplevel">
|
||||||
|
<xsl:param name="with-namespace-refs"/>
|
||||||
|
<xsl:param name="in-file"/>
|
||||||
|
|
||||||
|
<xsl:if test="@kind='define'">
|
||||||
|
<macro>
|
||||||
|
<xsl:attribute name="name">
|
||||||
|
<xsl:value-of select="name/text()"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
|
||||||
|
<xsl:if test="param">
|
||||||
|
<xsl:attribute name="kind">
|
||||||
|
<xsl:value-of select="'functionlike'"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
|
<xsl:for-each select="param">
|
||||||
|
<macro-parameter>
|
||||||
|
<xsl:attribute name="name">
|
||||||
|
<xsl:value-of select="defname/text()"/>
|
||||||
|
</xsl:attribute>
|
||||||
|
</macro-parameter>
|
||||||
|
</xsl:for-each>
|
||||||
|
|
||||||
|
<xsl:apply-templates select="briefdescription" mode="passthrough"/>
|
||||||
|
<xsl:apply-templates select="detaileddescription" mode="passthrough"/>
|
||||||
|
</macro>
|
||||||
|
</xsl:if>
|
||||||
|
</xsl:template>
|
||||||
|
|
||||||
|
|
||||||
<xsl:template match="innerclass">
|
<xsl:template match="innerclass">
|
||||||
<xsl:param name="with-namespace-refs"/>
|
<xsl:param name="with-namespace-refs"/>
|
||||||
<xsl:param name="in-file"/>
|
<xsl:param name="in-file"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user