(: Name: compatibility-025 :) (: Description: The value of a comment node is replaced more than once. :) (: insert-start :) declare variable $input-context external; (: insert-end :) let $var := $input-context/works[1]/employee[13] return ( replace value of node $var/comment()[1] with "test", replace value of node $var/comment()[1] with "otherTest" )