Re: [basex-talk] XQuery Update using IF Condition...

2013-01-02 Thread Christian Grün
Hi John, all branches of your if expression must be updating, or return an empty sequence. In the latest snapshot [1], I’ve replaced the old error message with a more helpful one (“all expressions must be updating or return an empty sequence.”). To come back to your query: The following query wil

[basex-talk] XQuery Update using IF Condition...

2013-01-02 Thread John Best
Dear Team, I am getting error - If expression : no updating expression allowed - while trying to update the "Data" DB. I need to update the DB, if it is not already updated... for $c in doc('2012')/Docs/Doc/No/@n return if (string-length(doc('Data')/Docs/Doc[No/@n=$c]/Title/Name/t