aspose file tools*
The moose likes XML and Related Technologies and the fly likes Reg: retrieve of system time in XSLT1.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Reg: retrieve of system time in XSLT1.0" Watch "Reg: retrieve of system time in XSLT1.0" New topic
Author

Reg: retrieve of system time in XSLT1.0

praveen oruganti
Ranch Hand

Joined: Feb 05, 2007
Posts: 73
can any one tell how to retrieve system time in XSLT 1.0.


Regards,<br />Praveen Oruganti<br />Software Programmer
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

Easy way: have the Transformer pass it in as a parameter.

Not-so-easy way: call a Java class method to return it to the stylesheet.
praveen oruganti
Ranch Hand

Joined: Feb 05, 2007
Posts: 73
Thanks for your reply Paul.

Easy way: have the Transformer pass it in as a parameter.

Can you tell me an example to do it.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18987
    
    8

I thought it was so easy that no example was required. So I'm not sure just what you want in the way of an example. What problem are you having with implementing that suggestion?
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Here is a simple example of the "NOT so easy way", take a look:

http://bobcat.webappcabaret.net/javachina/faq/xslt_01.htm#xslt_ex_Q30
praveen oruganti
Ranch Hand

Joined: Feb 05, 2007
Posts: 73
Thanks for your Reply..
 
jQuery in Action, 2nd edition
 
subject: Reg: retrieve of system time in XSLT1.0