xalan-c-users@xml.apache.org
[Top] [All Lists]

RE: Xalan-C / XSL 1.0 : Curent date

Subject: RE: Xalan-C / XSL 1.0 : Curent date
From: "Sathasivam, Elayaraja"
Date: Wed, 30 Jul 2008 16:01:05 +0530
Any examples ?
Could you tell us  without using ICU, by using extension function ?
example ?

Regards,
Raja 
_________________________________________________________________

-----Original Message-----
From: David Bertoni [mailto:dbertoni@xxxxxxxxxx] 
Sent: Tuesday, July 29, 2008 7:57 PM
To: xalan-c-users@xxxxxxxxxxxxxx
Subject: Re: Xalan-C / XSL 1.0 : Curent date

Sathasivam, Elayaraja wrote:
> I would like to print the current date with the format ('E yyyy MM
> dd hh:mm:ss' ) by using xsl 1.0. I am new to Xalan-C. I have worked
> only with Xalan-J.
> 
> Any thing similar as below in Xalan-C ????????
No, Xalan-C has no facility for date formatting.  You will need to 
format the date, then pass it into the stylesheet as a parameter.  Or, 
you can write an extension function that you can call in your
stylesheet.

The ICU (International Components for Unicode) has support for date 
formatting which is like the Java functionality you're using in Xalan-J.

Dave

<Prev in Thread] Current Thread [Next in Thread>