To automatically produce pubdates, I've followed the advice on this page
http://www.dpawson.co.uk/docbook/styling/custom.html#d2212e1704.
In the comments, it mentions Add number formatting to ensure two digits in
time fields. - does anyone know how to do that? At the moment we do indeed
get a
Actually, the stylesheets have a processing instruction named dbtimestamp
that does that. The M format letter automatically inserts the leading
zero if the minute number is less than 10. See:
http://www.sagehill.net/docbookxsl/Datetime.html
Bob Stayton
Sagehill Enterprises
DocBook
On that note, is there any way to make the day of the month value drop
the leading '0'?
I use ?dbtimestamp format='B d, Y'? and I get something like 'March
07, 2007' which seems a bit crude. I would like to see 'March 7, 2007'
Regards,
Dean Nelson
Enterprise Electronics Corp
Looking at the code again, it looks like this should work:
?dbtimestamp format=B d, Y padding=0?
The padding is 1 by default. The padding value applies to hour and minute
as well as date, so it would be best to use separate dbtimestamp PIs if you
need both date and time and want different
Thanks Bob, it worked!
Regards,
Dean Nelson
Enterprise Electronics Corp
-Original Message-
From: Bob Stayton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 28, 2007 3:07 PM
To: Nelson, Dean; docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Ensuring two digits in