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.

[SVN r86273]
This commit is contained in:
Daniel James 2013-10-12 20:09:53 +00:00
parent 8d4f56a3b8
commit ac51c2dcfc

View File

@ -232,11 +232,14 @@ set toc,title
<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"/>