Skip to content

Specify XPath version in documentation #6456

@Vampire

Description

@Vampire

http://checkstyle.sourceforge.net/config_filters.html#SuppressionXpathFilter does not state which XPath version is supported.

In PMD for example currently only XPath 1.0 is supported for violationSuppressXPath while for XPath based checks also 2.0 is supported.

The main problem with this is, that XPath 2.0 is not backwards compatible to XPath 1.0, for example "4" > "4.0" will be a numerical comparison in 1.0 but a string comparison in 2.0 and thus get different results, besides that it is nice to know that you can use more advanced constructs in your queries.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions