[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] date formating
Hi I have asked this question before and Jeni gave me a solution using only XSL. I realize now that it might be better to do it with java and extensions. So any other suggestions on how to do this would be helpful. Someone previous had mentioned using java or java script. How can I do this using java/javascript? So again this is what I want to do. I'm converting an xml document to a prism document using a stylesheet. One of the elements in the XML document is date, which is given in "MM DD YYYY h:mm" format (example: "Jul 10 1999 9:10AM"). I want the date to be formated w/ the year first (ex: "1999-07-10 T9:10 TZD" ). I'm passing an XML document for the XSL stylesheet to use. here is what part of it looks like: <?xml version="1.0" encoding="iso-8859-1" ?> <moreovernews> <article id="_22161643"> <url><http://c.moreover.com></url> <document_url><http://www.mo.com></document_url> <harvest_time>Jul 20 2001 2:13PM</harvest_time> <access_registration /> </article> ... and so on. the harvest_time is what I want to reformat. what do I need to do inorder to get my stylesheet to reformat the date? I want to use java or java script (not solely XSL). thanks! Samina __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|