|
Boost-Commit : |
From: fmhess_at_[hidden]
Date: 2007-12-04 14:45:11
Author: fmhess
Date: 2007-12-04 14:45:10 EST (Tue, 04 Dec 2007)
New Revision: 41697
URL: http://svn.boost.org/trac/boost/changeset/41697
Log:
Fixed printing of object name for nested classes (merge of
revision 41421 from sandbox/boost_docs).
Text files modified:
trunk/tools/boostbook/xsl/utility.xsl | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
Modified: trunk/tools/boostbook/xsl/utility.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/utility.xsl (original)
+++ trunk/tools/boostbook/xsl/utility.xsl 2007-12-04 14:45:10 EST (Tue, 04 Dec 2007)
@@ -21,12 +21,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