Skip to content

Issue with function:count() #51

@Vission01

Description

@Vission01

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions