[xquery-talk] Selecting everything before and after path,
but without duplicated leafs
Florent Georges
lists at fgeorges.org
Mon Feb 11 17:47:29 PST 2008
"J. Zhang" wrote:
Hi
> XPST0003: XQuery syntax error in #...elected) then return
> <SELECT>{#: expected "else", found ">"
> Static error(s) in query
> I don't see any mistake in the syntax. The error is probably
> generated by the "if" statement, I assume it can take a "return"?
Nop. The format of if-else is:
if ( condition ) then
sequence-if
else
sequence-else
There is no 'return' keyword there. Remember the aim of the
instructions is to build a sequence, not to break the evaluation (then
it will be maybe more clear why no 'return' keyword is needed).
Regards,
--drkm
______________________________________________________________________________
Yahoo! Mail : un mail innovant avec Messenger compatible Windows Live + stockage illimité. http://mail.yahoo.fr
More information about the talk
mailing list