Boost logo

Boost-Commit :

From: fmhess_at_[hidden]
Date: 2007-09-19 13:22:16


Author: fmhess
Date: 2007-09-19 13:22:16 EDT (Wed, 19 Sep 2007)
New Revision: 39391
URL: http://svn.boost.org/trac/boost/changeset/39391

Log:
Only generate a link from the "types" section of a class synopsis
if there are uncompacted types.

Text files modified:
   sandbox/boost_docs/trunk/tools/boostbook/xsl/type.xsl | 22 ++++++++++++++++------
   1 files changed, 16 insertions(+), 6 deletions(-)

Modified: sandbox/boost_docs/trunk/tools/boostbook/xsl/type.xsl
==============================================================================
--- sandbox/boost_docs/trunk/tools/boostbook/xsl/type.xsl (original)
+++ sandbox/boost_docs/trunk/tools/boostbook/xsl/type.xsl 2007-09-19 13:22:16 EDT (Wed, 19 Sep 2007)
@@ -723,13 +723,23 @@
       </xsl:call-template>
       <emphasis>
         <xsl:text>// </xsl:text>
- <xsl:call-template name="internal-link">
- <xsl:with-param name="to">
- <xsl:call-template name="generate.id"/>
+ <!-- True if there are any non-compacted typedefs -->
+ <xsl:variable name="have-typedef-references"
+ select="typedef and ((typedef/para|typedef/description) or ($boost.compact.typedef='0'))"/>
+ <xsl:choose>
+ <xsl:when test="$have-typedef-references">
+ <xsl:call-template name="internal-link">
+ <xsl:with-param name="to">
+ <xsl:call-template name="generate.id"/>
+ <xsl:text>types</xsl:text>
+ </xsl:with-param>
+ <xsl:with-param name="text" select="'types'"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
             <xsl:text>types</xsl:text>
- </xsl:with-param>
- <xsl:with-param name="text" select="'types'"/>
- </xsl:call-template>
+ </xsl:otherwise>
+ </xsl:choose>
       </emphasis>
 
       <xsl:variable name="max-type-length">


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk