This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
position-2 is set to be a failing test (FONC0001), and the query is this: employee[position() = 1] Which seems to be legal? At least the XQuery spec says that any step like E1[E2] defines the context item for E2: http://www.w3.org/TR/xquery/#eval_context
I too find that the query is wrong, but because it expects the wrong error. It expects that position() detects that there is no context item (FONC0001), but the processor should fail when it attempts to evaluate the "employee" navigation, raising the error err:XPTY0020
Agree: Changed test to use position() with the context item undefined. Please close bug if you agree with resolution. New test looks like this: (: Name: position-2 :) (: Description: Evaluation of "fn"position", where the context node is not defined. :) (: insert-start :) declare variable $input-context1 external; (: insert-end :) position() Thanks, Carmelo
Yes, I do agree.