We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given this XML document:
<A1 id="1"> <B1 id="2"></B1> <C1 id="3"></C1> </A1>
and XPath Query
//*[head(./*/last()) <= 1]
BaseX gives result
<A1 id="1"><B1 id="2"/><C1 id="3"/></A1>
Should return empty result set as Saxon & Exist.
When executing //A1/*/last(), BaseX returns 2, 2; Therefore the condition is false and node A1 should not be selected.
//A1/*/last()
create database test
put test.xml path/to/file
xquery //*[head(./*/last()) <= 1]
No response
BaseX version: Newest development version from Github, commit 95e6aaa
The text was updated successfully, but these errors were encountered:
Thanks again. A simplified version (returns 1 instead of 2):
1
2
<a><b/><b/></a> ! head(*/last())
Sorry, something went wrong.
51cdae6
Fixed (head(*/last() was erroneously rewritten to head(*) ! last())
head(*/last()
head(*) ! last()
Thanks again! :)
No branches or pull requests
Description of the Problem
Given this XML document:
and XPath Query
BaseX gives result
Expected Behavior
Should return empty result set as Saxon & Exist.
When executing
//A1/*/last()
, BaseX returns 2, 2; Therefore the condition is false and node A1 should not be selected.Steps to Reproduce the Behavior
create database test
put test.xml path/to/file
xquery //*[head(./*/last()) <= 1]
Do you have an idea how to solve the issue?
No response
What is your configuration?
BaseX version: Newest development version from Github, commit 95e6aaa
The text was updated successfully, but these errors were encountered: