XQuery Scripts to serve multiple purposes.