There are lots of ways of solving a problem in XQuery. This sites examines a number of common tasks and the alternatives available for solving each of them. The different solutions are compared by execution time and the length of the XQuery code.
Scripts are executed on eXist 3.0.RC1 Build 20150707.
A Kit Wallace production. Issues and code (soon) on Github