This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Our implenetation of fn:subsequence was incorrectly using fs:ceiling rather than fs:round to round the arguments. This was solving the problem in bug 4841, and with the adjusted formal semantics rules (in bug 4841) was not causing any tests to fail. Perhaps a few more tests should be added to XQTS to check rounding of arguments, eg: fn:subsequence((1,2,3), 1.1, 1) should give 1 fn:subsequence((1,2,3), 1.8, 1) should give 2 fn:subsequence((1,2,3), 1.4, 1.4) should give 1 fn:subsequence((1,2,3), 1.5, 1.5) should give (2, 3)
Also in relation to bug 4841, there is no test that tests a filter expression with a non integer predicate, such as the example given in FS 4.3.2: //a[3.4] should return () and similarly (1,2,3,4,5)[3.4] should return ()
I've added the tests you suggested. XQTS_current.zip is updated. If the resolution is satisfactory, feel free to change status to CLOSED.