Author: mriou
Date: Thu May 29 10:25:05 2008
New Revision: 661411

URL: http://svn.apache.org/viewvc?rev=661411&view=rev
Log:
Stops copying namespace attributes in assign, it just increases confusion.

Modified:
    ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java

Modified: 
ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java
URL: 
http://svn.apache.org/viewvc/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java?rev=661411&r1=661410&r2=661411&view=diff
==============================================================================
--- 
ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java 
(original)
+++ 
ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/runtime/ASSIGN.java 
Thu May 29 10:25:05 2008
@@ -461,7 +461,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);
         


Reply via email to