https://regeneratingserumolayfast.blogspot.com/2023/07/dynamically-execute-xquery-within.html
Dynamically Execute Xquery Within Javascript And Store The Result In A Js Variable