xsl-list
[Top] [All Lists]

Re: Current date in a Xsl variable

2003-09-10 00:54:36
Hi Peter,
  It is possible to get system date with EXSLT. The
XSLT processor must support EXSLT extensions.

With EXSLT you can do --
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
xmlns:datetime="http://exslt.org/dates-and-times";>

and get the current date and time as --
<xsl:value-of select="datetime:dateTime()" />

I know that Xalan 2.5.1 supports it. Saxon should also
be supporting it..

Regards,
Mukul


--- logchem(_dot_)news(_at_)zonnet(_dot_)nl wrote:
Is it possibbe to get the current date in a
variable?

I only found JavaScript routines, but it's not
possible to store A 
javascript variable in a Xsl variable.

Thanks in advance
Peter

-- 

_____________________________________________________________________
Snel en voordelig ADSL nu voor iedereen bereikbaar.
Zon Breedband Budget vanaf EUR 14,95 per maand.
Nu tijdelijk geen aansluitkosten. Bestel snel op
zonnet.nl/breedband


 XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list



__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



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