Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/IterateTag.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/IterateTag.java b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/IterateTag.java
index 9ac9e47..d7fad44 100644
--- a/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/IterateTag.java
+++ b/plugins/org.eclipse.jet/src/org/eclipse/jet/internal/taglib/control/IterateTag.java
@@ -118,7 +118,7 @@ public class IterateTag extends AbstractIteratingTag
public void doAfterBody(TagInfo td, JET2Context context, JET2Writer out) throws JET2TagException
{
// restore variables, context objects from previous interation up variables
- if (updateContext(context))
+ if (updateContext(context) && nodeSetIteration)
{
XPathContextExtender.getInstance(context).popXPathContextObject();
}
@@ -136,10 +136,6 @@ public class IterateTag extends AbstractIteratingTag
XPathContextExtender xpathContext = XPathContextExtender.getInstance(context);
- if(updateContext(context)) {
- context.getSource();
- }
-
if (varName != null && context.hasVariable(varName))
{
savedVarValue = context.getVariable(varName);

Back to the top