This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: date function in XSLT or XPATH


>> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]