This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Current date?
- From: Mailing List <mailinglist dot 01 dot 1 at goolo dot com>
- To: Brian Burridge <brian at burridge dot net>
- Cc: DocBookApps <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 02 Apr 2003 12:48:18 +0200
- Subject: Re: [docbook-apps] Current date?
- References: <1048863783.1339.0.camel@mi6.local>
Brian Burridge wrote:
Is there something I can put in my docbook, that will represent the
current date, so that when the stylesheets process my file, the current
date is put there?
* generate a timestamp (this is a M$-DOS example)
echo %date% %time% >timestamp.txt
* declare this file as an entity:
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "docbookx.dtd" [
...
<!ENTITY timestamp SYSTEM "timestamp.txt">
...
]>
* and use it
...
<pubdate>×tamp;</pubdate>
...
Lars
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org