mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
Use description element in functions
[SVN r17935]
This commit is contained in:
parent
c9c1f578ca
commit
d2e78d320f
@ -407,8 +407,8 @@
|
|||||||
|
|
||||||
<!-- True if we should compact this function -->
|
<!-- True if we should compact this function -->
|
||||||
<xsl:variable name="compact"
|
<xsl:variable name="compact"
|
||||||
select="not (para|requires|effects|postconditions|returns|throws|
|
select="not (para|description|requires|effects|postconditions|returns|
|
||||||
complexity|notes|rationale) and
|
throws|complexity|notes|rationale) and
|
||||||
($boost.compact.function='1')"/>
|
($boost.compact.function='1')"/>
|
||||||
|
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
@ -450,8 +450,8 @@
|
|||||||
|
|
||||||
<!-- True if we should compact this function -->
|
<!-- True if we should compact this function -->
|
||||||
<xsl:variable name="compact"
|
<xsl:variable name="compact"
|
||||||
select="not (para|requires|effects|postconditions|returns|throws|
|
select="not (para|description|requires|effects|postconditions|returns|
|
||||||
complexity|notes|rationale) and
|
throws|complexity|notes|rationale) and
|
||||||
($boost.compact.function='1')"/>
|
($boost.compact.function='1')"/>
|
||||||
|
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
@ -675,7 +675,17 @@
|
|||||||
<xsl:apply-templates select="purpose/*"/>
|
<xsl:apply-templates select="purpose/*"/>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:apply-templates select="para"/>
|
<xsl:apply-templates select="description/*"/>
|
||||||
|
|
||||||
|
<xsl:if test="para">
|
||||||
|
<xsl:message>
|
||||||
|
<xsl:text>Warning: Use of 'para' elements in a function is deprecated. </xsl:text>
|
||||||
|
<xsl:text> Wrap them in a 'description' element.</xsl:text>
|
||||||
|
</xsl:message>
|
||||||
|
<xsl:call-template name="print.warning.context"/>
|
||||||
|
<xsl:apply-templates select="para"/>
|
||||||
|
</xsl:if>
|
||||||
|
|
||||||
<xsl:if test="requires|effects|postconditions|returns|throws|complexity|
|
<xsl:if test="requires|effects|postconditions|returns|throws|complexity|
|
||||||
notes|rationale">
|
notes|rationale">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
@ -798,8 +808,8 @@
|
|||||||
<xsl:template match="function|method" mode="reference">
|
<xsl:template match="function|method" mode="reference">
|
||||||
<!-- True if we should compact this function -->
|
<!-- True if we should compact this function -->
|
||||||
<xsl:variable name="compact"
|
<xsl:variable name="compact"
|
||||||
select="not (para|requires|effects|postconditions|returns|throws|
|
select="not (para|description|requires|effects|postconditions|returns|
|
||||||
complexity|notes|rationale) and
|
throws|complexity|notes|rationale) and
|
||||||
($boost.compact.function='1')"/>
|
($boost.compact.function='1')"/>
|
||||||
|
|
||||||
<xsl:if test="not ($compact)">
|
<xsl:if test="not ($compact)">
|
||||||
@ -827,8 +837,8 @@
|
|||||||
<xsl:template match="function" mode="namespace-reference">
|
<xsl:template match="function" mode="namespace-reference">
|
||||||
<!-- True if we should compact this function -->
|
<!-- True if we should compact this function -->
|
||||||
<xsl:variable name="compact"
|
<xsl:variable name="compact"
|
||||||
select="not (para|requires|effects|postconditions|returns|throws|
|
select="not (para|description|requires|effects|postconditions|returns|
|
||||||
complexity|notes|rationale) and
|
throws|complexity|notes|rationale) and
|
||||||
($boost.compact.function='1')"/>
|
($boost.compact.function='1')"/>
|
||||||
|
|
||||||
<xsl:if test="not ($compact)">
|
<xsl:if test="not ($compact)">
|
||||||
@ -870,8 +880,8 @@
|
|||||||
|
|
||||||
<!-- True if we should compact this function -->
|
<!-- True if we should compact this function -->
|
||||||
<xsl:variable name="compact"
|
<xsl:variable name="compact"
|
||||||
select="not (para|requires|effects|postconditions|returns|throws|
|
select="not (para|description|requires|effects|postconditions|returns|
|
||||||
complexity|notes|rationale) and
|
throws|complexity|notes|rationale) and
|
||||||
($boost.compact.function='1')"/>
|
($boost.compact.function='1')"/>
|
||||||
|
|
||||||
<xsl:if test="not ($compact)">
|
<xsl:if test="not ($compact)">
|
||||||
@ -904,8 +914,8 @@
|
|||||||
<xsl:template match="overloaded-function" mode="namespace-reference">
|
<xsl:template match="overloaded-function" mode="namespace-reference">
|
||||||
<!-- True if we should compact this function -->
|
<!-- True if we should compact this function -->
|
||||||
<xsl:variable name="compact"
|
<xsl:variable name="compact"
|
||||||
select="not (para|requires|effects|postconditions|returns|throws|
|
select="not (para|description|requires|effects|postconditions|returns|
|
||||||
complexity|notes|rationale) and
|
throws|complexity|notes|rationale) and
|
||||||
($boost.compact.function='1')"/>
|
($boost.compact.function='1')"/>
|
||||||
|
|
||||||
<xsl:variable name="name" select="@name"/>
|
<xsl:variable name="name" select="@name"/>
|
||||||
@ -952,8 +962,8 @@
|
|||||||
|
|
||||||
<!-- True if we should compact this function -->
|
<!-- True if we should compact this function -->
|
||||||
<xsl:variable name="compact"
|
<xsl:variable name="compact"
|
||||||
select="not (para|requires|effects|postconditions|returns|throws|
|
select="not (para|description|requires|effects|postconditions|returns|
|
||||||
complexity|notes|rationale) and
|
throws|complexity|notes|rationale) and
|
||||||
($boost.compact.function='1')"/>
|
($boost.compact.function='1')"/>
|
||||||
|
|
||||||
<xsl:if test="not ($compact)">
|
<xsl:if test="not ($compact)">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user