This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
fn-base-uri-2.xq reads as follows: let $var := 0 return $var/fn:base-uri() due to the path expression, where the context item is an atomic value, implementations report XPTY0019 iso FOTY0011. FYI, a different query, but this is similar to http://www.w3.org/Bugs/Public/show_bug.cgi?id=2804 Thanks, Marc
Agreed. In section 3.2, Path Expressions, XQuery says: "Each operation E1/E2 is evaluated as follows: Expression E1 is evaluated, and if the result is not a (possibly empty) sequence of nodes, a type error is raised [err:XPTY0019]."
Mark: Correct. I changed the test to remove the path. Please close the bug if in agreement and able to verify. New query reads: "(1 to 100)[fn:base-uri()]" Thanks, Carmelo
verified and looks ok