environment-find-variable (environment local-name uri)
XPath variable "thunk"
Finds an XPath variable by local-name and uri.
XPath variable is represented by a "thunk". A "thunk" is a function that takes an instance of context as its argument and returns the value of one of XPath types.