|
[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message] Selecting everything before and after path, but without duplicated leafsFlorent Georges lists at fgeorges.orgMon 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
|
Purchase Stylus Studio Online Today!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|






