Skip to content

XQuery: Bug on node selection with self axis #2194

Description

@Twilight-Shuxin

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 e8717fb on Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions