current-date and current-dateTime does not give the instant date/time stamp
The current-date and current-dateTime does not give the instant date/time stamp when called during an 'interactive' XSLT event. This is noticeable if the browser is not refreshed overnight.
It would be desirable to have implemented in Saxon-JS the extension function saxon:timestamp.
#2 Updated by Michael Kay over 1 year ago
I think it would probably make sense for current-dateTime() to be updated whenever an ixsl:schedule-action occurs or when an event-driven template rule is activated. If we went this way we would have to make sure that the optimizer is aware that current-dateTime() and friends are no longer pure functions, and mustn't be promoted to global variables. If that proves problematic, then using saxon:timestamp() for the purpose might be an alternative way forward.
Note also that implicit-timezone() can also potentially change while a stylesheet is waiting for the next user event.
Please register to edit this issue