Project

Profile

Help

Revision 034cac7d

Added by Michael Kay over 12 years ago

Fix bug 2796490 *:localname matches attribute nodes

View differences:

latest9.1/bj/net/sf/saxon/pattern/LocalNameTest.java
61 61
     */
62 62

  
63 63
    public boolean matches(NodeInfo node) {
64
        return localName.equals(node.getLocalPart());
64
        return localName.equals(node.getLocalPart()) && nodeKind == node.getNodeKind();
65 65
    }
66 66

  
67 67

  

Also available in: Unified diff