Updating expression as operand in path expression
Bug #866309 reported by
Ghislain
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
New
|
Medium
|
Matthias Brantner |
Bug Description
The following query (under build 5589) fails because the function body is not recognised as an updating expression.
declare updating function local:test($x) {
$x/(insert node <a/> into .)
};
1+1
To post a comment you must log in.
Sincere apologies, I made a little mistake. The specification says that expressions which are neither FLWOR, typeswitch, conditional, comma, parenthesized nor function calls may not contain an updating expression as an operand: a static error XUST0001 has to be raised. This is not the case, so the following program is incorrect and should raise an error, but does not:
declare function local:test($x) {
$x/(insert node <a/> into .)
};
1+1