Skip to content

XQuery: Bug on node selection with position() #2219

Description

@Twilight-Shuxin

Description of the Problem

Given this XML document:

<T/>

and XPath Query

//*[position() < position()]

BaseX returned node T.

Expected Behavior

Should not select node as predicate evaluates to false always.

Steps to Reproduce the Behavior

  1. Create database create database test <T/>
  2. Execute XPath query xquery //*[position() < position()]

Do you have an idea how to solve the issue?

No response

What is your configuration?

BaseX version: BaseX 10.7 beta latest commit 28e2e38 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