OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]