BaseXdb / basex

BaseX Main Repository.
http://basex.org
BSD 3-Clause "New" or "Revised" License
661 stars 268 forks source link

XQuery: Bug on node selection with self axis #2194

Closed Twilight-Shuxin closed 1 year ago

Twilight-Shuxin commented 1 year ago

Description of the Problem

Given this XML document:

<G2 id="1" y1="a"></G2>

and XPath Query

//G2[@y1 <= "a"]/self::*[@y1 > "a"]

BaseX give result

<G2 id="1" y1="a"/>

Expected Behavior

Should return empty result set as eXist & Saxon.

Steps to Reproduce the Behavior

  1. Create database create database test
  2. Insert XML file into database put test.xml path/to/file
  3. Execute XPath query //G2[@y1 <= "a"]/self::*[@y1 > "a"]

Do you have an idea how to solve the issue?

No response

What is your configuration?

BaseX version: BaseX 10.6 beta latest commit e8717fb4 on Windows