-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
xpath: Apply predicate list before sorting result when evaluating location step expression #40592
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
xpath: Apply predicate list before sorting result when evaluating location step expression #40592
Conversation
TimvdLippe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there 🎉
29e4a21 to
5e475e3
Compare
|
We need to merge #40595 first to fix yanked crate. |
|
My bad, I thought rebasing was enough. |
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
5e475e3 to
c7d7049
Compare
|
Emm I clicked "rebase branch" in GitHub UI. I thought it would be seamless but somehow got me involved too. Feel free to repush by yourself. @simonwuelker |
I don't mind (: |
When a NodeSet is passed to the `id` function then we want to act as if we were computing the union of individual `id` calls for each node in the set. We weren't doing that before. Depends on #40592 Testing: A new test starts to pass --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
When a NodeSet is passed to the `id` function then we want to act as if we were computing the union of individual `id` calls for each node in the set. We weren't doing that before. Depends on #40592 Testing: A new test starts to pass --------- Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>
The result of a predicate can depend on the position of the node in its set, and this position is dependent on the axis that the node set came from. This is specified in https://www.w3.org/TR/1999/REC-xpath-19991116/#predicates.
Additionally, this change fixes a small bug in the implementation of
preceding::(#40588) where the root of a subtree would be included twice. That wasn't discovered earlier because nodes are deduplicated at the end of the evaluation.Testing: New tests start to pass, this change adds more tests