Skip to content

XQuery: Bug on map operation of empty sequence #2216

@Twilight-Shuxin

Description

@Twilight-Shuxin

Description of the Problem

Given this XML document:

<Q1 id="1"/>

and XPath Query

//Q1[(@p1 ! (. > 1)) = false()]

BaseX returned node Q1.

Expected Behavior

Should return empty result set as Saxon, for @p1 ! (. > 1) should return empty sequence when @p1 is an empty sequence.

Steps to Reproduce the Behavior

  1. Create database create database test <Q1 id="1"/>
  2. Execute XPath query xquery //Q1[(@p1 ! (. > 1)) = false()]

Do you have an idea how to solve the issue?

No response

What is your configuration?

BaseX version: BaseX 10.7 beta latest commit 081fb4d on Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions