Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XQuery: Incorrect result for count after subsequence #2214

Closed
Twilight-Shuxin opened this issue Jun 1, 2023 · 0 comments
Closed

XQuery: Incorrect result for count after subsequence #2214

Twilight-Shuxin opened this issue Jun 1, 2023 · 0 comments
Labels

Comments

@Twilight-Shuxin
Copy link

Description of the Problem

Given this XML document:

<M id="8"/>

and XPath Query

/M/count(subsequence(. ! (., @id), 1, 2))

BaseX gives result 1.

Expected Behavior

Should return 2 as Saxon and eXist-DB.

Steps to Reproduce the Behavior

  1. Create database create database test <M id="8"/>
  2. Execute XPath query xquery /M/count(subsequence(. ! (., @id), 1, 2))

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants