Author: mriou
Date: Thu May 29 10:27:18 2008
New Revision: 661412
URL: http://svn.apache.org/viewvc?rev=661412&view=rev
Log:
Stops copying namespace attributes in assign, it just increases confusion.
Modified:
ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
Modified:
ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
URL:
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java?rev=661412&r1=661411&r2=661412&view=diff
==============================================================================
---
ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
(original)
+++
ode/branches/APACHE_ODE_1.1/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
Thu May 29 10:27:18 2008
@@ -456,7 +456,8 @@
replacement.appendChild(doc.importNode(nl.item(i), true));
NamedNodeMap attrs = src.getAttributes();
for (int i = 0; i < attrs.getLength(); ++i)
- replacement.setAttributeNodeNS((Attr)doc.importNode(attrs.item(i),
true));
+ if (!((Attr)attrs.item(i)).getName().startsWith("xmlns"))
+
replacement.setAttributeNodeNS((Attr)doc.importNode(attrs.item(i), true));
parent.replaceChild(replacement, ptr);
DOMUtils.copyNSContext(ptr, replacement);