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]
Other format: [Raw text]

AW: Date in document !


> 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


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