Using a let clause with a range expression : let « XQuery « XML






Using a let clause with a range expression


File: Query.xquery

let $i := (1 to 3) 
return <oneEval>{$i}</oneEval>

Output:

<?xml version="1.0" encoding="UTF-8"?>
<oneEval>1 2 3</oneEval>

 








Related examples in the same category

1.Adding a let clause
2.Intermingled for and let clauses
3.Let stateCt