This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]