This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
AW: Date in document !
- From: "Harbarth, Juliane" <Juliane dot Harbarth at softwareag dot com>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 25 Jun 2002 15:47:16 +0200
- Subject: AW: [xsl] Date in document !
- Reply-to: xsl-list at lists dot mulberrytech dot com
> is there anyway I can insert date (on which document is created)
> in the document.
Hi Mehul,
SAXON supports the EXSLT set of XSLT extensions, especially
the EXSLT module DatesAndTimes that contains a date()
function. This function if no argument is given returns the
current local date/time, i.e. when the XSLT stylesheet is run.
I guess this is what you are looking for.
Usage:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:date="http://exslt.org/dates-and-times"
extension-element-prefixes="date"
...>
...
<xsl:value-of select="date:date()"/
...
</xsl:stylesheet>
Regards,
Juliane.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list