Closed Twilight-Shuxin closed 1 year ago
Given this XML document:
<A1 id="1"> <B1 id="2"> <C1 id="3">1</C1> </B1> <D1 id="4">2</D1> </A1>
and XPath Query
//*[count(./*/*) >= 1]/*
BaseX give result
<B1 id="2"> <C1 id="3">1</C1> </B1>
Should return both node 2 and 4 as Saxon & Exist db.
create database test
put test.xml path/to/file
No response
BaseX version: BaseX 10.6 beta latest commit 816b386 on Windows
Good catch! It turns out the optimization introduced in #1864 is flawed and needs to be revised.
Thank you very much!
Description of the Problem
Given this XML document:
and XPath Query
BaseX give result
Expected Behavior
Should return both node 2 and 4 as Saxon & Exist db.
Steps to Reproduce the Behavior
create database test
put test.xml path/to/file
//*[count(./*/*) >= 1]/*
Do you have an idea how to solve the issue?
No response
What is your configuration?
BaseX version: BaseX 10.6 beta latest commit 816b386 on Windows