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

[BUG] xs:QName castable as returns incorrect results #3390

Closed
joewiz opened this issue Apr 26, 2020 · 1 comment · Fixed by #4439
Closed

[BUG] xs:QName castable as returns incorrect results #3390

joewiz opened this issue Apr 26, 2020 · 1 comment · Fixed by #4439
Labels
bug issue confirmed as bug xquery issue is related to xquery implementation
Milestone

Comments

@joewiz
Copy link
Member

joewiz commented Apr 26, 2020

Describe the bug

"0" castable as xs:QName should return false(), and it does so in BaseX and Saxon, but in eXist it returns true().

(Oddly, eXist recognizes that "0" castable as xs:NCName is false(). I say "oddly," because QName consists of either a single NCName or 2 NCNames joined by a colon.)

Expected behavior

"0" castable as xs:QName should return false()

For more context, see https://en.wikipedia.org/wiki/QName and https://www.w3.org/TR/xml-names/#ns-qualnames.

To Reproduce

xquery version "3.1";

module namespace t="http://exist-db.org/xquery/test";

declare namespace test="http://exist-db.org/xquery/xqsuite";

declare
    %test:assertFalse
function t:test() {
    "0" castable as xs:QName
};

Screenshots

n/a

Context (please always complete the following information):

Additional context

  • How is eXist-db installed? 5.2.0 release via DMG and 5.3.0-SNAPSHOT via maven build
  • Any custom changes in e.g. conf.xml? none
@triage-new-issues triage-new-issues bot added the triage issue needs to be investigated label Apr 26, 2020
@joewiz joewiz added the bug issue confirmed as bug label Apr 26, 2020
@triage-new-issues triage-new-issues bot removed the triage issue needs to be investigated label Apr 26, 2020
@joewiz joewiz added this to the eXist-5.2.1 milestone Apr 26, 2020
@line-o line-o added the xquery issue is related to xquery implementation label Apr 26, 2020
@joewiz
Copy link
Member Author

joewiz commented Sep 18, 2020

The current develop branch (eXist 5.3.0-SNAPSHOT e92ea8f 20200915110349) is still affected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug issue confirmed as bug xquery issue is related to xquery implementation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants