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: Unexpected exception of mapping double attributes #2215

Closed
Twilight-Shuxin opened this issue Jun 6, 2023 · 2 comments
Closed

XQuery: Unexpected exception of mapping double attributes #2215

Twilight-Shuxin opened this issue Jun 6, 2023 · 2 comments
Labels

Comments

@Twilight-Shuxin
Copy link

Description of the Problem

Given this XML document:

<T id="1" a="1" b="1"/>

and XPath Query

boolean(count(//*[@id="1"] ! (@a, @b)))

BaseX throws exception:
[XPTY0019] (@A | @b): node expected, xs:boolean found: true().

Expected Behavior

Should return true as Saxon and eXist-DB.

Steps to Reproduce the Behavior

  1. Create database create database test <T id="1" a="1" b="1"/>
  2. Execute XPath query xquery boolean(count(//*[@id="1"] ! (@a, @b)))

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

@ChristianGruen
Copy link
Member

Thanks for all the bug reports. I'll look at them in around 10 days. Keep on going ;)

@Twilight-Shuxin
Copy link
Author

@ChristianGruen Thanks a lot! :)

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