(: Name: id-replace-expr-012 :) (: Description: Evaluation of a replace expression where the target expression is an updating expression. :) (: insert-start :) declare variable $input-context external; (: insert-end :) let $var1 := $input-context/employees[1]/employee[1] let $var2 := 1250000 return replace node (rename node $var1/salary[1] as "salary1") with $var2/salary[1]