Proposal:
Add a CVS id tag into the xdocs and place the version string on 
the bottom of the generated HTML via the stylebook transformation.

Reasoning:
Looking at the HTML documents it is hard to know how recent the
content was updated. Only people subscribed to CVS commits are
informed when a corresponding XML file was updated. When the
HTML is generated, all files are touched and committed...

Solution:

To each xdoc add a version tag to the header to hold the CVS id:
...
  <header>
    <title>
    ...
    <version>$Id: doc.xml,v 1.1 2000/11/27 01:06:59 name Exp $</version>
  </header>
...

To the document2html.xsl whithin the bottom table (before the 
copyright message) add something like:

  <xsl:variable name="cvs_id" select="string(document/header/version)" />
  <xsl:if test="contains($version, ',v')">
    <xsl:variable name="version" select="substring-after($cvs_id, ',v ')" />
    <xsl:variable name="date" select="substring(substring-after($version, ' '), 19)" />
    <tr>
      <td align="center">
        <font face....>
          updated: <xsl:value-of select="$date" />
          version: <xsl:value-of select="substring-before($version, ' ')" />
        </font>
      </td>
    </tr>
  </xsl:if>
  

:) Christoph


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to