(: Name: id-transform-expr-052 :) (: Description: The copy clause sometimes changes the in-scope-namespaces. :) declare copy-namespaces preserve, no-inherit; (: insert-start :) declare variable $input-context external; (: insert-end :) let $a := let $copyb := copy $b := $a/b modify () return $b return empty(in-scope-prefixes($copyb)[.="x"])