[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: current-dateTime()
On 4/19/08, Michael Kay <mike@xxxxxxxxxxxx> 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() :) -- Regards, Mukul Gandhi
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|