mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
Merge pull request #6 from vprus/copyright-footer
Make copyright footer generation simpler and more flexible.
This commit is contained in:
commit
53b9e5fe04
@ -221,53 +221,13 @@ set toc,title
|
|||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template name="user.footer.content">
|
<xsl:template name="user.footer.content">
|
||||||
<table width="100%">
|
<div class = "copyright-footer">
|
||||||
<tr>
|
<xsl:apply-templates select="ancestor::*/*/copyright"
|
||||||
<td align="left">
|
mode="boost.footer"/>
|
||||||
<xsl:variable name="revision-nodes"
|
<xsl:apply-templates select="ancestor::*/*/legalnotice"
|
||||||
select="ancestor-or-self::*
|
mode="boost.footer"/>
|
||||||
[not (attribute::rev:last-revision='')]"/>
|
<xsl:apply-templates select="ancestor::*/*/para[@role='copyright']"/>
|
||||||
<xsl:if test="count($revision-nodes) > 0">
|
</div>
|
||||||
<xsl:variable name="revision-node"
|
|
||||||
select="$revision-nodes[last()]"/>
|
|
||||||
<xsl:variable name="revision-text">
|
|
||||||
<xsl:value-of
|
|
||||||
select="normalize-space($revision-node/attribute::rev:last-revision)"/>
|
|
||||||
</xsl:variable>
|
|
||||||
<xsl:if test="string-length($revision-text) > 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"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:otherwise>
|
|
||||||
<xsl:call-template name="format.svn.revision">
|
|
||||||
<xsl:with-param name="text" select="$revision-text"/>
|
|
||||||
</xsl:call-template>
|
|
||||||
</xsl:otherwise>
|
|
||||||
</xsl:choose>
|
|
||||||
</small>
|
|
||||||
</p>
|
|
||||||
</xsl:if>
|
|
||||||
</xsl:if>
|
|
||||||
</td>
|
|
||||||
<td align="right">
|
|
||||||
<div class = "copyright-footer">
|
|
||||||
<xsl:apply-templates select="ancestor::*/*/copyright"
|
|
||||||
mode="boost.footer"/>
|
|
||||||
<xsl:apply-templates select="ancestor::*/*/legalnotice"
|
|
||||||
mode="boost.footer"/>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</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