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

Issue with function:count() #51

Open
Vission01 opened this issue Jul 12, 2022 · 0 comments
Open

Issue with function:count() #51

Vission01 opened this issue Jul 12, 2022 · 0 comments

Comments

@Vission01
Copy link

Vission01 commented Jul 12, 2022

Given an example XML:
<object> <element> <node>x</node> </element> <element> <node>x</node> </element> <element> <node>x</node> </element> <element> <node>y</node> </element> <element> <node>x</node> </element> </object>

This seems to work:

count(object/element[node='x'])

This does not:

object/count(element[node='x'])

You get: Error evaluating XPath

This works in other XPath tools, such as:
https://www.freeformatter.com/xpath-tester.html#before-output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant