atom feed46 messages in com.mulberrytech.lists.xsl-listRE: [xsl] current-dateTime()
FromSent OnAttachments
Andrew WelchApr 18, 2008 4:53 am 
David CarlisleApr 18, 2008 5:06 am 
John SnelsonApr 18, 2008 5:12 am 
Mukul GandhiApr 18, 2008 5:48 am 
Dimitre NovatchevApr 18, 2008 5:54 am 
Mukul GandhiApr 18, 2008 5:56 am 
Robert KobergApr 18, 2008 6:03 am 
Andrew WelchApr 18, 2008 6:05 am 
David CarlisleApr 18, 2008 6:19 am 
Colin Paul AdamsApr 18, 2008 6:35 am 
Michael LudwigApr 18, 2008 7:11 am 
Liam QuinApr 18, 2008 7:24 am 
Liam QuinApr 18, 2008 7:33 am 
Robert KobergApr 18, 2008 7:34 am 
Colin Paul AdamsApr 18, 2008 7:38 am 
Abel BraaksmaApr 18, 2008 7:38 am 
Colin Paul AdamsApr 18, 2008 7:45 am 
Michael LudwigApr 18, 2008 7:46 am 
Abel BraaksmaApr 18, 2008 7:47 am 
Andrew WelchApr 18, 2008 7:48 am 
Abel BraaksmaApr 18, 2008 7:50 am 
Abel BraaksmaApr 18, 2008 7:54 am 
Abel BraaksmaApr 18, 2008 7:56 am 
Dimitre NovatchevApr 18, 2008 7:57 am 
Abel BraaksmaApr 18, 2008 7:58 am 
Colin Paul AdamsApr 18, 2008 8:03 am 
Dimitre NovatchevApr 18, 2008 8:04 am 
Andrew WelchApr 18, 2008 8:07 am 
Dimitre NovatchevApr 18, 2008 8:16 am 
Andrew WelchApr 18, 2008 8:19 am 
Andrew WelchApr 18, 2008 8:38 am 
Michael LudwigApr 18, 2008 8:45 am 
Dimitre NovatchevApr 18, 2008 9:01 am 
Abel BraaksmaApr 18, 2008 9:29 am 
Robert KobergApr 18, 2008 2:20 pm 
Liam QuinApr 18, 2008 6:42 pm 
Liam QuinApr 18, 2008 6:44 pm 
Dimitre NovatchevApr 18, 2008 7:30 pm 
Michael KayApr 19, 2008 12:27 am 
Michael KayApr 19, 2008 12:37 am 
Mukul GandhiApr 19, 2008 12:38 am 
Michael KayApr 19, 2008 1:51 am 
Michael LudwigApr 19, 2008 2:20 am 
Andrew WelchApr 19, 2008 2:39 am 
Mukul GandhiApr 19, 2008 8:24 am 
Dimitre NovatchevApr 19, 2008 9:11 am 
Subject:RE: [xsl] current-dateTime()
From:Michael Kay (mi@saxonica.com)
Date:Apr 19, 2008 1:51:07 am
List:com.mulberrytech.lists.xsl-list

On 4/19/08, Michael Kay <mi@saxonica.com> wrote:

<xsl:variable name="startTime" select="xx:current-dateTime()"/> ... do some processing ... <xsl:variable name="endTime" select="xx:current-dateTime()"/> <xsl:message select="$endTime - $startTime"/>

The final result will be a negative duration, because Saxon will evaluate $endTime before it evaluates $startTime.

If that's the case, then we can strip the - sign if it's present or do something like abs() :)

That doesn't help. The real point is that variables aren't evaluated until they are used, so both startTime and endTime are evaluated after doing all the work, giving you no useful information about how long it took to do the work.