File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
exist-core/src/main/antlr/org/exist/xquery/parser Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -721,8 +721,9 @@ exprSingle throws XPathException
721
721
| ( "switch" LPAREN ) => switchExpr
722
722
| ( "typeswitch" LPAREN ) => typeswitchExpr
723
723
| ( "update" ( "replace" | "value" | "insert" | "delete" | "rename" )) => updateExpr
724
- | ( "insert" ) => xqufInsertExpr
725
- | ( "delete" ) => xqufDeleteExpr
724
+ | ( "insert" ( "node" | "nodes" ) ) => xqufInsertExpr
725
+ | ( "delete" ( "node" | "nodes" ) ) => xqufDeleteExpr
726
+ | ( "replace" ( "value" | "node" ) ) => xqufReplaceExpr
726
727
| ( "copy" DOLLAR) => copyModifyExpr
727
728
| ( "invoke" "updating" ) => dynamicUpdFunCall
728
729
| orExpr
@@ -794,6 +795,11 @@ xqufDeleteExpr throws XPathException
794
795
"delete"^ ( "node"! | "nodes"! ) exprSingle
795
796
;
796
797
798
+ xqufReplaceExpr throws XPathException
799
+ :
800
+ "replace"^ ("value" "of"!)? "node"! exprSingle "with"! exprSingle
801
+ ;
802
+
797
803
copyModifyExpr throws XPathException
798
804
:
799
805
"copy"^ letVarBinding ( COMMA! letVarBinding )*
You can’t perform that action at this time.
0 commit comments