mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 23:13:58 +00:00
Handle \param in macros.
[SVN r79192]
This commit is contained in:
parent
d7dcdd15be
commit
058bacfdcd
@ -484,10 +484,20 @@
|
|||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:for-each select="param">
|
<xsl:for-each select="param">
|
||||||
|
<xsl:variable name="name" select="defname/text()"/>
|
||||||
<macro-parameter>
|
<macro-parameter>
|
||||||
<xsl:attribute name="name">
|
<xsl:attribute name="name">
|
||||||
<xsl:value-of select="defname/text()"/>
|
<xsl:value-of select="defname/text()"/>
|
||||||
</xsl:attribute>
|
</xsl:attribute>
|
||||||
|
<xsl:variable name="params"
|
||||||
|
select="../detaileddescription/para/parameterlist"/>
|
||||||
|
<xsl:variable name="description" select="$params/parameteritem/
|
||||||
|
parameternamelist/parametername[text() = $name]/../../parameterdescription/para"/>
|
||||||
|
<xsl:if test="$description">
|
||||||
|
<description>
|
||||||
|
<xsl:apply-templates select="$description" mode="passthrough"/>
|
||||||
|
</description>
|
||||||
|
</xsl:if>
|
||||||
</macro-parameter>
|
</macro-parameter>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
|
|
||||||
|
@ -45,6 +45,44 @@
|
|||||||
</xsl:with-param>
|
</xsl:with-param>
|
||||||
<xsl:with-param name="text">
|
<xsl:with-param name="text">
|
||||||
<xsl:apply-templates select="description"/>
|
<xsl:apply-templates select="description"/>
|
||||||
|
|
||||||
|
<xsl:if test="macro-parameter/description">
|
||||||
|
<variablelist spacing="compact">
|
||||||
|
<xsl:processing-instruction name="dbhtml">
|
||||||
|
list-presentation="table"
|
||||||
|
</xsl:processing-instruction>
|
||||||
|
|
||||||
|
<!-- Document parameters -->
|
||||||
|
<xsl:if test="macro-parameter/description">
|
||||||
|
<varlistentry>
|
||||||
|
<term>Parameters:</term>
|
||||||
|
<listitem>
|
||||||
|
<variablelist spacing="compact">
|
||||||
|
<xsl:processing-instruction name="dbhtml">
|
||||||
|
list-presentation="table"
|
||||||
|
</xsl:processing-instruction>
|
||||||
|
<xsl:for-each select="macro-parameter">
|
||||||
|
<xsl:sort select="attribute::name"/>
|
||||||
|
<xsl:if test="description">
|
||||||
|
<varlistentry>
|
||||||
|
<term>
|
||||||
|
<xsl:call-template name="monospaced">
|
||||||
|
<xsl:with-param name="text" select="@name"/>
|
||||||
|
</xsl:call-template>
|
||||||
|
</term>
|
||||||
|
<listitem>
|
||||||
|
<xsl:apply-templates select="description/*"/>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</xsl:if>
|
||||||
|
</xsl:for-each>
|
||||||
|
</variablelist>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
</xsl:if>
|
||||||
|
</variablelist>
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
</xsl:with-param>
|
</xsl:with-param>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user