cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@apache.org>
Subject Re: Adding date and time to a xml file
Date Mon, 17 Jan 2005 07:45:35 GMT
Le 15 janv. 05, à 14:28, lincoln a écrit :

> ...My code is based on the xml binding sample block and am trying to 
> add this
> XSP code to get the date and time (works in isolation):
> <xsp:page xmlns:xsp="http://apache.org/xsp">
> 	<date><xsp:expr>new Date()</xsp:expr></date>
> </xsp:page>..

Note that this is easy to do with XSLT extensions, just create a 
java.util.Date object  and use a SimpleDateFormat or something similar 
to format the date.

Searching
-Bertrand


Mime
View raw message