This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Current date?


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>&timestamp;</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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]