import module namespace math="http://www.zorba-xquery.com/modules/math"; math:small((3, 4, 5, 2, 3, 4, 6, 4, 7), 4) (: Expected output: <?xml version="1.0" encoding="UTF-8"?> 4 :)