This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Under the rules given in the formal semantics specification, the filter expression [positino() = last()] does not normalize in the same way as if it had been written as [last()] (see 4.3.2 Filter Expressions). The result of this is that this argument to fn:node-name in this query is a zero-or-more sequence, rather than a zero-or-one sequence. (: Name: fn-node-name-2 :) (: Description: Evaluation of node-name function with argument set to comment no de. :) (: Use fn:count to avoid empty file :) (: insert-start :) declare variable $input-context1 external; (: insert-end :) fn:count(fn:node-name($input-context1/works[1]/employee[2]/child::text()[position()=last()]))
fn-nilled-2 has a similar problem.
Tim: Thanks for the message. Changed test by removing static typing dependencies. Thanks, Carmelo