This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
When static typing is in effect, the error XPST0005 should be permitted. The expression 'self::div' must not have type empty-sequence(). (: Name: fn-name-16:) (: Description: Evaluation of the fn:name function with argument that uses the " self" axes. Returns a empty sequence:) (: Uses fn:count to avoid empty file. :) (: insert-start :) declare variable $input-context1 external; (: insert-end :) for $h in ($input-context1/works/employee[2]) return fn:count(fn:name($h/self::div))
*** This bug has been marked as a duplicate of bug 3971 ***