[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Converting from datetime in milliseconds to a specific

Subject: Converting from datetime in milliseconds to a specific format in XSL
From: "Vishwajit Pantvaidya" <pantvaidya@xxxxxxxxxxx>
Date: Thu, 25 Aug 2005 20:42:31 -0700
datetime milliseconds
Using Xalan-Java and XSLT, I am trying to convert date from an input xml that has it expressed as a single number (in milliseconds) e.g. the input xml has 1088499889000 that corresponds to the date 2004-06-29 09:04:49.000GMT.

Doing this conversion within java is simple. To try and do this within XSLT, I looked up extensions like XSLT-SL and EXSLT - but they do not seem to have functions for this. Are there any extensions available that I could use for this conversion?

Alternatively I saw that Xalan-J allows calls to java functions from XSL. So an option is to convert the numeric date by calls to Java api. But restrictions on parameter-types in such calls introduce difficulty here.

Is there any other/better/easier way to do this?
If making Java calls from XSL is to be used, how bad would be the performance impact of that?



- Vish.


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.