Description of the Problem
Given this XML document:
and XPath Query
//X[not(position() * 2 = last())]
BaseX gives unexpected exception
[XPTY0004] Cannot convert xs:decimal to xs:integer: 0.5.
Result is similar for query
//X[not(position() + position() = last())]
Expected Behavior
Should be able to execute successfully.
Steps to Reproduce the Behavior
- Create database
create database test <X/>
- Execute XPath query
xquery //X[not(position() * 2 = last())]
Do you have an idea how to solve the issue?
No response
What is your configuration?
BaseX version: BaseX 10.7 beta latest commit abf2eca on Windows