Subject: Re: [xsl] date formating From: "cutlass" <cutlass@xxxxxxxxxxx> Date: Thu, 16 Aug 2001 19:52:57 +0100 |
if u want to just use javascript, there is a javascript implementation of most of the date formating fucntions ( by chris bayes ) www.exslt.org cheers, jim (ok, thats enough for today ) ----- Original Message ----- From: "Samina Islam" <samnaz123@xxxxxxxxx> To: <xsl-list-digest@xxxxxxxxxxxxxxxxxxxxxx> Sent: Thursday, August 16, 2001 7:48 PM Subject: [xsl] 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 > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] date formating, Samina Islam | Thread | Re: [xsl] date formating, Jeni Tennison |
[xsl] date formating, Samina Islam | Date | [xsl] Re: Re: ?XSLT Repository?, Dimitre Novatchev |
Month |