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


Win a copy of Head First Android this week in the Android forum!
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
Sheriff

Joined: Oct 14, 2005
Posts: 19662
    
  10

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
Sheriff

Joined: Oct 14, 2005
Posts: 19662
    
  10

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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reg: retrieve of system time in XSLT1.0
 
It's not a secret anymore!