summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2006-09-07 23:36:40 (EDT)
committer pelder2006-09-07 23:36:40 (EDT)
commitd6f8a803858610cd325e9d80ed2eaea7dff077ba (patch)
treee5222b0f152230ad0c1f00551753d4fee72a3f5a
parentc959c34d5fcd9e14a73b9ed2d4a7b16986562e41 (diff)
downloadorg.eclipse.jet-d6f8a803858610cd325e9d80ed2eaea7dff077ba.zip
org.eclipse.jet-d6f8a803858610cd325e9d80ed2eaea7dff077ba.tar.gz
org.eclipse.jet-d6f8a803858610cd325e9d80ed2eaea7dff077ba.tar.bz2
[156637] Match simple NCNames against feature names only
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/inspectors/EObjectInspector.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/inspectors/EObjectInspector.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/inspectors/EObjectInspector.java
index d446853..cf585bd 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/inspectors/EObjectInspector.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/inspectors/EObjectInspector.java
@@ -242,7 +242,7 @@ public class EObjectInspector implements IElementInspector, INodeInspectorExtens
private boolean matchesFeature(ExpandedName expandedName, EStructuralFeature feature)
{
ExpandedName featureEN = expandedNameOfFeature(feature);
- final boolean equals = expandedName.equals(featureEN);
+ final boolean equals = expandedName.equals(featureEN) || expandedName.equals(new ExpandedName(feature.getName()));
return equals;
}