• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reg: retrieve of system time in XSLT1.0

 
praveen oruganti
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one tell how to retrieve system time in XSLT 1.0.
 
Paul Clapham
Sheriff
Posts: 21113
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21113
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your Reply..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic