I'm still getting my head around dynamic functions and arrays in XQuery 3.1. My question for today: easiest/best/most-efficient/cleverest way to reverse an array. You can't just use reverse() on an array, so how to produce a new array that is the reverse of the input array? Thanks, Eliot ---- Eliot Kimber, Owner Contrext, LLC http://contrext.com