This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
emacs time stamp
- To: xsl-list at mulberrytech dot com
- Subject: emacs time stamp
- From: DPawson at rnib dot org dot uk
- Date: Thu, 9 Nov 2000 13:39:49 -0000
- Reply-To: xsl-list at mulberrytech dot com
Trying to be careful on versioning, I wanted to pull in the date
automatically.
The following works, using emacs.
<?xml version="1.0"?>
<!-- Time-stamp: "2000-11-09 13:32:19 DPawson" -->
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
>
<xsl:template match="/">
<html><head></head>
<body>
<h2>Tests for DAISY spec version 2.0205</h2>
<p>Revision 1.01. <xsl:value-of select="document('')/comment()[1]"/></p>
The time-stamp needs to be up near the top of the file for auto updating,
and the /comment()[1] pulls it in nicely to give
Revision 1.01. Time-stamp: "2000-11-09 13:32:19 DPawson"
good ole emacs :-)
DaveP
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list