[xquery-talk] if statement inside FLWOR-expressions
georg.piewald at siemens.com
Fri Aug 22 10:22:30 PDT 2008
I'm very new to Xquery and don't know much more than what I've read in a
tutorial. Now I have trouble with a query where I need an if-statement
inside a FLWOR-expression. The following minimal example shows the
for $item in (1 to 5)
if ($item < 3) then
let $var := 'abc'
let $var := 'def'
The 'if' doesn't seem to be permitted after the for, I get an error
"Parse error: element name containing whitespace: unexpected token:
What can I do to solve this?
More information about the talk