aspose file tools*
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 Java 8 in Action this week in the Java 8 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to get todays/current date in XSL
 
Similar Threads
Depricated Date class
How to get Current Date in Xsl
Question on Creation of a Date Object
how can i get yesterdays date?
I need a date... No, really!