mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
[BoostBook] Added support for SVN fixed-length $Date$ keyword.
[SVN r85021]
This commit is contained in:
parent
0d12037b77
commit
fae9c57743
@ -140,9 +140,9 @@ set toc,title
|
|||||||
<xsl:template name="format.svn.revision">
|
<xsl:template name="format.svn.revision">
|
||||||
<xsl:param name="text"/>
|
<xsl:param name="text"/>
|
||||||
|
|
||||||
<!-- Remove the "$Date: " -->
|
<!-- Remove the "$Date: " or "$Date:: " -->
|
||||||
<xsl:variable name="text.noprefix"
|
<xsl:variable name="text.noprefix"
|
||||||
select="substring-after($text, '$Date: ')"/>
|
select="substring-after($text, ': ')"/>
|
||||||
|
|
||||||
<!-- Grab the year -->
|
<!-- Grab the year -->
|
||||||
<xsl:variable name="year" select="substring-before($text.noprefix, '-')"/>
|
<xsl:variable name="year" select="substring-before($text.noprefix, '-')"/>
|
||||||
@ -184,8 +184,10 @@ set toc,title
|
|||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:value-of select="concat($month.name, ' ', $day, ', ', $year, ' at ',
|
<xsl:value-of select="concat($month.name, ' ', $day, ', ', $year)"/>
|
||||||
$time, ' ', $timezone)"/>
|
<xsl:if test="$time != ''">
|
||||||
|
<xsl:value-of select="concat(' at ', $time, ' ', $timezone)"/>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- Footer Copyright -->
|
<!-- Footer Copyright -->
|
||||||
|
@ -78,9 +78,9 @@
|
|||||||
<xsl:template name="format.svn.revision">
|
<xsl:template name="format.svn.revision">
|
||||||
<xsl:param name="text"/>
|
<xsl:param name="text"/>
|
||||||
|
|
||||||
<!-- Remove the "$Date: " -->
|
<!-- Remove the "$Date: " or "$Date:: " -->
|
||||||
<xsl:variable name="text.noprefix"
|
<xsl:variable name="text.noprefix"
|
||||||
select="substring-after($text, '$Date: ')"/>
|
select="substring-after($text, ': ')"/>
|
||||||
|
|
||||||
<!-- Grab the year -->
|
<!-- Grab the year -->
|
||||||
<xsl:variable name="year" select="substring-before($text.noprefix, '-')"/>
|
<xsl:variable name="year" select="substring-before($text.noprefix, '-')"/>
|
||||||
@ -122,8 +122,10 @@
|
|||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
</xsl:variable>
|
</xsl:variable>
|
||||||
|
|
||||||
<xsl:value-of select="concat($month.name, ' ', $day, ', ', $year, ' at ',
|
<xsl:value-of select="concat($month.name, ' ', $day, ', ', $year)"/>
|
||||||
$time, ' ', $timezone)"/>
|
<xsl:if test="$time != ''">
|
||||||
|
<xsl:value-of select="concat(' at ', $time, ' ', $timezone)"/>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- We don't want refentry's to show up in the TOC because they
|
<!-- We don't want refentry's to show up in the TOC because they
|
||||||
|
Loading…
x
Reference in New Issue
Block a user