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

fn:siblings() on parentless nodes #1552

Open
michaelhkay opened this issue Nov 6, 2024 · 1 comment · May be fixed by #1573
Open

fn:siblings() on parentless nodes #1552

michaelhkay opened this issue Nov 6, 2024 · 1 comment · May be fixed by #1573
Labels
Bug Something that doesn't work in the current specification PR Pending A PR has been raised to resolve this issue XQFO An issue related to Functions and Operators

Comments

@michaelhkay
Copy link
Contributor

It feels rather odd that the result of fn:siblings() should include the argument node, except when it is parentless.

If fn:siblings were defined as preceding-sibling::node() | self::node() | following-sibling::node(), then the start node would be included even if it is parentless -- and even if it is an attribute or namespace node.

@michaelhkay michaelhkay added Bug Something that doesn't work in the current specification XQFO An issue related to Functions and Operators labels Nov 6, 2024
@michaelhkay
Copy link
Contributor Author

This also affects the definitions of the following-sibling-or-self and preceding-sibling-or-self axes which are defined in term of the siblings() function.

@michaelhkay michaelhkay added the PR Pending A PR has been raised to resolve this issue label Nov 13, 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 PR Pending A PR has been raised to resolve this issue XQFO An issue related to Functions and Operators
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant