*
The moose likes XML and Related Technologies and the fly likes How to get todays/current date in XSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to get todays/current date in XSL" Watch "How to get todays/current date in XSL" New topic
Author

How to get todays/current date in XSL

Avi Nash
Ranch Hand

Joined: Jul 17, 2003
Posts: 69
Hi All
How to get todays/current date in XSL.
Thx i nadv.
rgds
Avinash
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
Originally posted by Avi Sali:
Hi All
How to get todays/current date in XSL.
Thx i nadv.
rgds
Avinash

dont think its possible. You can invoke 'new java.util.Date()' from within XSL. The stlyesheet processor you are using s'd allow you to call java from within the stylesheet.
Karthik Guru
Ranch Hand

Joined: Mar 06, 2001
Posts: 1209
ok my neigbour tells me that sometimes he used to pass current date as a parameter to the stlyesheet.
 
 
subject: How to get todays/current date in XSL
 
Similar Threads
how can i get yesterdays date?
Depricated Date class
I need a date... No, really!
How to get Current Date in Xsl
Question on Creation of a Date Object