Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpelder2008-02-22 11:22:30 -0500
committerpelder2008-02-22 11:22:30 -0500
commit3222f18f596aa258ac48a48083988c60d2f67223 (patch)
tree4872a372dc1227e590bd2354fbc56a6ca5c04ad4
parentcd0e1d93089851af96349e203ae3f1aff86bb79f (diff)
downloadorg.eclipse.jet-3222f18f596aa258ac48a48083988c60d2f67223.tar.gz
org.eclipse.jet-3222f18f596aa258ac48a48083988c60d2f67223.tar.xz
org.eclipse.jet-3222f18f596aa258ac48a48083988c60d2f67223.zip
[219826] XPath engine does not recognize XML elements in substitution gouprs
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/xpath/inspectors/EObjectInspector.java3
1 files changed, 2 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 f9e75cc..1199816 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
@@ -727,7 +727,8 @@ public class EObjectInspector implements IElementInspector, INodeInspectorExtens
for (Iterator i = allElementsFeatures.iterator(); i.hasNext();)
{
EStructuralFeature feature = (EStructuralFeature)i.next();
- if(exMD.getFeatureKind(feature) == ExtendedMetaData.ELEMENT_WILDCARD_FEATURE) {
+ final int featureKind = exMD.getFeatureKind(feature);
+ if(featureKind == ExtendedMetaData.ELEMENT_WILDCARD_FEATURE || featureKind == ExtendedMetaData.GROUP_FEATURE) {
FeatureMap fm = (FeatureMap)eObject.eGet(feature, true);
List result = new ArrayList(fm.size());
for (Iterator ifm = fm.iterator(); ifm.hasNext();)

Back to the top