This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: date function in XSLT or XPATH
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] date function in XSLT or XPATH
- From: "Roger L. Cauvin" <roger at cauvin dot org>
- Date: Thu, 7 Jun 2001 17:06:05 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
>> Is there a function that retrieves the system date and time in XPATH
>> language or XSLT?
> No. You can achieve it easily either by passing the value into the
> stylesheet as a parameter, or by calling an extension function. In either
> case, the precise details of how to do it depend on the processor you
> are using.
You can also use XVRL (see http://www.xvrl.org) to refer to the current time
in an XML document. An XVRL parser such as JResolver will resolve the
reference, and produce a plain XML document with the current time. It will
also optionally apply a stylesheet before producing the output.
However, this solution, too, is not pure XSLT.
---
Roger L. Cauvin
roger@cauvin.org
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list