You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Ali Baq <ba...@hotmail.com> on 2003/11/12 13:18:19 UTC

putting date in header or footer

how can i put the date and time of the system (e.g. java.util.Date.toString) 
in the header or footer of the pdf page?
thank you

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE* 
http://join.msn.com/?page=features/junkmail


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: putting date in header or footer

Posted by Abhijit Junnare <ma...@yahoo.com>.
Use the XSL extension fucntions. I am using
something like this

xmlns:date="http://exslt.org/dates-and-times"

<xsl:value-of select="date:date-time()"/>

I have this code some place in my stylesheet to
convert the XML into PDF using FOP. 
Thanks,
Abhi


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


RE: putting date in header or footer

Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: Ali Baq 
> 
> how can i put the date and time of the system (e.g. 
> java.util.Date.toString) 
> in the header or footer of the pdf page?

2 possibilities (if you're using XML/XSL-FO to PDF):

- enter the current date as an element or attribute in your source XML
- use XSL extension function in your stylesheet


Greetz,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org