FLWOR expressions

FLWOR expressions iterate over sequences and bind variables to intermediate results.

FLWOR expressions are useful for:
  • Computing joins between two or more documents
  • Restructuring data
  • Sorting the results