File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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