|
Boost-Commit : |
From: fmhess_at_[hidden]
Date: 2007-10-13 23:44:28
Author: fmhess
Date: 2007-10-13 23:44:28 EDT (Sat, 13 Oct 2007)
New Revision: 39999
URL: http://svn.boost.org/trac/boost/changeset/39999
Log:
Fixed application of annotation templates to children of
<type>, which I broke with changeset 39997.
Text files modified:
sandbox/boost_docs/trunk/tools/boostbook/xsl/source-highlight.xsl | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
Modified: sandbox/boost_docs/trunk/tools/boostbook/xsl/source-highlight.xsl
==============================================================================
--- sandbox/boost_docs/trunk/tools/boostbook/xsl/source-highlight.xsl (original)
+++ sandbox/boost_docs/trunk/tools/boostbook/xsl/source-highlight.xsl 2007-10-13 23:44:28 EDT (Sat, 13 Oct 2007)
@@ -165,14 +165,23 @@
<!-- docbook does not allow <type> elements to have <emphasis> children,
so put the type inside the emphasis. -->
+ <xsl:template match="type/text()" mode="highlight">
+ </xsl:template>
<xsl:template match="type" mode="highlight">
<xsl:choose>
<xsl:when test="$boost.syntax.highlight='1'">
- <emphasis role="bold"><xsl:copy-of select="."/></emphasis>
+ <emphasis role="bold">
+ <xsl:copy>
+ <xsl:apply-templates mode="annotation"/>
+ </xsl:copy>
+ </emphasis>
</xsl:when>
<xsl:otherwise>
- <xsl:copy-of select="."/>
+ <xsl:copy>
+ <xsl:apply-templates mode="annotation"/>
+ </xsl:copy>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
+
</xsl:stylesheet>
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