Re: [docbook-apps] Adding a DateTime stamp to a PDF titlepage

From
Dave Pawson <>
Date
2009-09-24T13:12:46+00:00
ID
Thread
Re: [docbook-apps] Adding a DateTime stamp to a PDF titlepage
On 24/09/09 12:56, Laurie Burley wrote:
> Hi,
>
> We are currently generating PDFs using xsltproc, and are building our
> PDF titlepages using an .svg image with the following code:


> We have been asked to include a date and time stamp on each pdf title
> page in addition to the graphic file.
>
> I’ve been able to get generic text placed in the correct location on the
> title page by adding the following entry directly after the
> external-graphic block:

> I’ve seen several examples using JavaScript but they tend to require
> either the Saxon or Xalan processors, which we are not using.
>
> Does anybody know if I can insert the date and time in that location? If
> so, could you provide or point me to an example?

Using xslt 2.0 it is easier, but with XSLT 1.0, easiest to pass
the date time, formatted as you want it, as a parameter
to the stylesheet, and use that value.




regards

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk