Boost logo

Boost-Commit :

From: fmhess_at_[hidden]
Date: 2007-11-27 15:30:34


Author: fmhess
Date: 2007-11-27 15:30:33 EST (Tue, 27 Nov 2007)
New Revision: 41421
URL: http://svn.boost.org/trac/boost/changeset/41421

Log:
Fixed printing of object name for nested classes.

Text files modified:
   sandbox/boost_docs/trunk/tools/boostbook/xsl/utility.xsl | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: sandbox/boost_docs/trunk/tools/boostbook/xsl/utility.xsl
==============================================================================
--- sandbox/boost_docs/trunk/tools/boostbook/xsl/utility.xsl (original)
+++ sandbox/boost_docs/trunk/tools/boostbook/xsl/utility.xsl 2007-11-27 15:30:33 EST (Tue, 27 Nov 2007)
@@ -22,12 +22,13 @@
 
   <!-- get name of first ancestor-or-self which is a class, struct or union -->
   <xsl:template name="object-name">
- <xsl:value-of select="(ancestor-or-self::class |
+ <xsl:variable name="ancestors" select="ancestor-or-self::class |
       ancestor-or-self::class-specialization |
       ancestor-or-self::struct |
       ancestor-or-self::struct-specialization |
       ancestor-or-self::union |
- ancestor-or-self::union-specialization)/@name[last()]"/>
+ ancestor-or-self::union-specialization"/>
+ <xsl:value-of select="$ancestors[last()]/@name"/>
   </xsl:template>
 
   <!-- get name of access specification that we are inside -->


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