Changeset 3202 for trunk/lib/docbook


Ignore:
Timestamp:
Mar 22, 2007, 2:21:35 PM (15 years ago)
Author:
Martin Svensson
Message:

Fixes #515 Add date of html pages generation to the first page.
The revision number and date for latest commit are added to the footer.

Location:
trunk/lib/docbook
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/docbook/ant-build-docbook.xml

    r3174 r3202  
    431431        </path>
    432432    </pathconvert>
    433 
     433   
     434    <!-- Get the revision number and the datetime when the latest file was commited -->
     435    <svn>
     436    <status path="../../doc/src/docbook" lastChangedRevisionProperty="doc.revision" />
     437      <status path="../../doc/src/docbook" lastChangedDateProperty="doc.last.modified" />
     438  </svn>
     439   
    434440    <copy file="${docbook.styles}/${docbook.style}/xsl/customized.chunked.xsl"
    435441          tofile="${build.dir}/customized.chunked.xsl.tmp"
     
    442448            <filter token="base.dir" value="${docbook:tmp:chunked.dir}" />
    443449            <filter token="root.filename" value="${manual.name}" />
     450          <filter token="doc.revision" value="${doc.revision}" />
     451          <filter token="doc.last.modified" value="${doc.last.modified}" />
    444452        </filterset>
    445453    </copy>
  • trunk/lib/docbook/custom-styles/docbook/plain/xsl/customized.chunked.xsl

    r3198 r3202  
    22<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    33                xmlns:fo="http://www.w3.org/1999/XSL/Format"
     4                xmlns:date="http://exslt.org/dates-and-times"
     5                exclude-result-prefixes="date"
    46                version='1.0'>
    57
     
    3335<xsl:param name="root.filename">@root.filename@</xsl:param>
    3436
     37<!-- doc.revision and doc.last.modified -->
     38<xsl:param name="doc.revision">@doc.revision@</xsl:param>
     39<xsl:param name="doc.last.modified">@doc.last.modified@</xsl:param>
    3540
    3641<!-- convert url-only references to a format that is wrappable -->
     
    8388</xsl:template>
    8489
     90<!-- Base specific templates -->
     91
    8592<xsl:template match="helptext">
    8693  <xsl:apply-templates />
     94</xsl:template>
     95
     96<xsl:template name="user.footer.navigation">
     97  <div
     98    class="navfooter"
     99    align="left">
     100    <p>
     101    <i>
     102      <xsl:if test="$doc.revision" >
     103        Revision: <xsl:value-of select="$doc.revision"/><br/>
     104      </xsl:if>
     105      <xsl:if test="$doc.last.modified" >
     106        Book last modified: <xsl:value-of select="$doc.last.modified" />
     107      </xsl:if>
     108    </i></p>
     109  </div>
    87110</xsl:template>
    88111
Note: See TracChangeset for help on using the changeset viewer.