Subject:Newbie question on XSLT: function call Author:Ulrik Balslev Date:07 Feb 2007 06:07 PM
Hi all
I am new to XSLT. This a really newbie question, sorry :-) . I am transforming an XML document using XSL. I want to insert date/time of the transformation into the HTML output, and have been trying to insert a call to the current-DateTime() function. In both IE7 and FireFox, the function is appearently unknown which results in an browser error, that prevents the HTML to be generated. When removing the function call output is OK. The Saxon XSLT engine does not generate this error. Is there a problem with the namespace?
Subject:Newbie question on XSLT: function call Author:George Pills Date:02 Apr 2007 06:58 AM
Hi Ivan.
I am in the same situation as Ulrik (he's probably moved on by now...). I'm a newbie who is trying to map some xml and I'd like to get the current date and time into the output xml. I cannot find any suitable functions for it in xslt, but I do see some in xQuery (tested them - they work fine). Question: I'm restricted to using xslt - what is the better approach: calling xquery from xslt (if so, how can that be done) or implementing specific extensions that provides the nescessary date-time functions (how)?
Subject:Newbie question on XSLT: function call Author:(Deleted User) Date:02 Apr 2007 10:54 AM
Hi George,
current-dateTime is available also in XSLT, but only starting with version 2.0; so be sure to specify version="2.0" in the xsl:stylesheet element, and select Saxon 8 as processor.