For and let expressions

XPath 4.0 allows multiple let clauses, or multiple for clauses (but not a mixture) in an expression. For example:

This feature is implemented from Saxon 12.3.