Closed Twilight-Shuxin closed 1 year ago
Given this XML document:
<X/>
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())]
Should be able to execute successfully.
create database test <X/>
xquery //X[not(position() * 2 = last())]
No response
BaseX version: BaseX 10.7 beta latest commit abf2eca on Windows
We keep you busy… Thanks as usual!
Thanks a lot as well!
Description of the Problem
Given this XML document:
and XPath Query
BaseX gives unexpected exception
Result is similar for query
Expected Behavior
Should be able to execute successfully.
Steps to Reproduce the Behavior
create database test <X/>
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