Am 9/9/2022 um 6:03 PM schrieb Martin Honnen:
I think, due to the functional/declarative language that is XQuery, the
static context defines that current-dateTime() doesn't change during the
execution of a single query, it is part of the static context.


It is defined in the dynamic context: https://www.w3.org/TR/xquery-31/#eval_context