[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: current-dateTime()

Subject: Re: current-dateTime()
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Fri, 18 Apr 2008 18:18:33 +0530
Re:  current-dateTime()
I share Andrew's concern that two calls to the mentioned functions
should return different results, reflecting the point in time.

If the stylesheet run spans multiple hours or days, it's useful to
have "at the moment" values of time.

Though I also agree that maintaining the declarative functional nature
of XSLT is also important.

On 4/18/08, Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote:
> What is the reasoning behind defining as current-dateTime() and
> current-time() as being "current at some time during the evaluation of
> a query or transformation"?
> Saxon seems to follow the above and return the same value for each
> call to the function, even during transformations that can last
> several minutes (or hours or days).
> It would be really useful if it returned the actual dateTime at the
> time of the call so you could implement a progress reporting feature
> in the transform - you could say how many records were processed in a
> given time and based on that suggest when the transform might finish.
> The spec does say it's implementation dependent, so I wonder why it's
> fixed when people can do that themselves with a variable... if it
> returns the time when it's called then it opens up quite a few
> possibilities (especially where standalone transforms orchestrate the
> entire processing)
> thanks
> --
> Andrew Welch
> http://andrewjwelch.com
> Kernow: http://kernowforsaxon.sf.net/

Mukul Gandhi

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.