[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Apache FOP 0.94 and current-date() current-time()
You have a couple of options:
* "FOP" (actually Xalan) supports java calls. The syntax is horrible, but it will give you access to the Date class, which is what you need [1]. Not recommended unless you know what you are doing. * You could pass the date in as a parameter to the XSLT. * Do as Micheal suggests and use Saxon. * Try using the date extension [2]. Don't know if Fop 0.94 supports this. You haven't said if you are embedding FOP or calling in the command line. I would recommend starting by giving the date extension a go. [1] http://www.cafeconleche.org/books/xmljava/chapters/ch17s03.html [2] http://www.exslt.org/date/functions/date/index.html Hello, -- Kamal Bhatt
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|