(: Name: applyUpdates-004 :)
(: Description: Apply insertBefore then replaceNode. :)
(: insert-start :)
declare variable $input-context external;
(: insert-end :)
let $var := $input-context/works[1]/employee[1]
return
(
replace node $var/hours with 10,
insert node before $var/hours
)