Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r86273 - trunk/tools/boostbook/xsl
From: dnljms_at_[hidden]
Date: 2013-10-12 16:09:54


Author: danieljames
Date: 2013-10-12 16:09:53 EDT (Sat, 12 Oct 2013)
New Revision: 86273
URL: http://svn.boost.org/trac/boost/changeset/86273

Log:
Try to make last-revsion a little more robust.

Don't display anything for empty '$Date$' variables, and just display the value
for normal, non version control values.

Text files modified:
   trunk/tools/boostbook/xsl/html-base.xsl | 5 ++++-
   1 files changed, 4 insertions(+), 1 deletions(-)

Modified: trunk/tools/boostbook/xsl/html-base.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/html-base.xsl Sat Oct 12 16:09:32 2013 (r86272)
+++ trunk/tools/boostbook/xsl/html-base.xsl 2013-10-12 16:09:53 EDT (Sat, 12 Oct 2013) (r86273)
@@ -232,11 +232,14 @@
               <xsl:value-of
                 select="normalize-space($revision-node/attribute::rev:last-revision)"/>
             </xsl:variable>
- <xsl:if test="string-length($revision-text) &gt; 0">
+ <xsl:if test="string-length($revision-text) &gt; 0 and not($revision-text = '$Date$')">
               <p>
                 <small>
                   <xsl:text>Last revised: </xsl:text>
                   <xsl:choose>
+ <xsl:when test="not(contains($revision-text, '$Date: ')) and not(contains($revision-text, '$Date:: '))">
+ <xsl:value-of select="$revision-text"/>
+ </xsl:when>
                     <xsl:when test="contains($revision-text, '/')">
                       <xsl:call-template name="format.cvs.revision">
                         <xsl:with-param name="text" select="$revision-text"/>


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