This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Because static typing implementations can extend the type checking rules in FS, this test can be failed by a static-typing implementation. In this case, it is possible to infer that $target has static type element(employee)? in let $target as node()? := $input-context/works[1]/employee[1] I would suggest altering the test to: (: Name: stf-replace-node-02 :) (: Description: replace-node: ST of TargetExpr is too vague. :) (: insert-start :) declare variable $input-context external; (: insert-end :) let $target as node()? := if (exists($input-context/works[1]/employee[1]) then $input-context/works[1]/employee[1] else $input-context return replace node $target with <employee name='John Q Public'/>
There are similar problems in the following tests. stf-delete-01 stf-insert-01 stf-insert-after-02 stf-replace-node-02 stf-replace-node-06 stf-replace-value-of-node-02 stf-transform-02
There is also a similar problem in stf-replace-node-04.