Skip to main content
100%

Example of a FLWOR expression

✓ Published0🌍 Public
CCliffordAnderson
Last edited Jul 21, 2013
Created on Jul 21, 2013

This example demonstrates a FLWOR expression in XQuery, showing how to compute the squares of odd numbers from 1 to 10 and return them in descending order. The data source is an inline numeric range, and the result sequence is produced by iterating with a `for` clause, binding each square with `let`, filtering odd values using a `where` condition, and sorting with `order by` before the final `return`. The code relies on the standard XQuery 3.0 library and its built-in arithmetic operators, with no external APIs or rendering components involved.

AI-generated description

Similar vizzes