#265 ns:* patterns matched incorrectly

v8.1.1
closed
5
2012-10-08
2004-11-20
Michael Kay
No

A match pattern of the form match="ns:" or
match="@ns:
" will match nodes that have the correct
namespace but the wrong node-kind - that is, both these
tests will match any element or attribute in the chosen
namespace.

The source fix is to change the matches() method in
NamespaceTest.java to read:

public boolean matches(NodeInfo node) {
return node.getNodeKind()==type &&
node.getURI().equals(uri);
}

Discussion