Subject: Re: [xsl] date format using xslt 1.0 From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Tue, 12 Jun 2012 20:51:54 +0100 |
On 12 June 2012 18:47, Jacob L <arkle.ash@xxxxxxxxx> wrote: > Hi, > > > I am trying to write an XSLT for formatting date.I am unable to find > any such previous posting,so sending it to the list.Here is my > requirement. > > Input format: > > <date>Mon, 11 Jun 2012 17:29:42 +0000 </date> > > After the transform,I want output as:- > > <date>20120611</date> which is YYYYMMDDkkmmss > > Time at the end is not important.I am using XSLT 1.0 and SAX parser. In xslt 1.0 I think you will just have to construct it using substring along with a named template to map the months to numbers. -- Andrew Welch http://andrewjwelch.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] date format using xslt 1.0, Jacob L | Thread | Re: [xsl] date format using xslt 1., Michael Kay |
Re: [xsl] Call java function to do , Liam R E Quin | Date | Re: [xsl] date format using xslt 1., Michael Kay |
Month |