util:shared-lock($nodes as node()*, $expression as item()*) item()*
Puts a shared lock on the owner documents of all nodes in the first argument $nodes. Then evaluates the expressions in the second argument $expression and releases the acquired locks aftertheir completion.
$nodes
The nodes that the shared lock will be placed on their owning documents.
$expression
The expression to be evaluated before the acquired locks are released.
Returns the results of the evaluation of the expression(s)