|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2008-05-05 16:28:56
Author: danieljames
Date: 2008-05-05 16:28:56 EDT (Mon, 05 May 2008)
New Revision: 45153
URL: http://svn.boost.org/trac/boost/changeset/45153
Log:
If the same macro appears twice, generated unique ids.
Text files modified:
branches/doc/tools/boostbook/xsl/macro.xsl | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
Modified: branches/doc/tools/boostbook/xsl/macro.xsl
==============================================================================
--- branches/doc/tools/boostbook/xsl/macro.xsl (original)
+++ branches/doc/tools/boostbook/xsl/macro.xsl 2008-05-05 16:28:56 EDT (Mon, 05 May 2008)
@@ -73,5 +73,9 @@
<xsl:template match="macro" mode="generate.id">
<xsl:value-of select="@name"/>
+ <xsl:if test="count(key('named-entities', @name))!=1">
+ <xsl:text>_</xsl:text>
+ <xsl:value-of select="generate-id(.)"/>
+ </xsl:if>
</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