How does one iterate over a sequence in xquery by twos? - by spig I want to iterate over a sequence in xquery and grab 2 elements at a time. What is the easiest way to do this? Read the article