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

document-node(a|b) is the same type as document-node(a)|document-node(b) #1624

Open
michaelhkay opened this issue Nov 29, 2024 · 0 comments
Open
Labels
Bug Something that doesn't work in the current specification XPath An issue related to XPath XQuery An issue related to XQuery

Comments

@michaelhkay
Copy link
Contributor

document-node(a|b) is the same type as document-node(a) | document-node(b) but the current subtyping rules don't say this.

Revealed by test case misc/subtyping-076

Note, this problem existed before we introduced document-node(X), the same is true of the expansion:

document-node(element(a|b)) is the same type as document-node(element(a)) | document-node(element(b))

@michaelhkay michaelhkay added Bug Something that doesn't work in the current specification XPath An issue related to XPath XQuery An issue related to XQuery labels Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something that doesn't work in the current specification XPath An issue related to XPath XQuery An issue related to XQuery
Projects
None yet
Development

No branches or pull requests

1 participant