You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2008/07/08 01:40:43 UTC

svn commit: r674673 - /ode/branches/APACHE_ODE_1.1/bpel-epr/src/main/java/org/apache/ode/il/OMUtils.java

Author: mriou
Date: Mon Jul  7 16:40:42 2008
New Revision: 674673

URL: http://svn.apache.org/viewvc?rev=674673&view=rev
Log:
A tribute to attributes and namespaces in DOM, which both deeply suck in many different ways.

Modified:
    ode/branches/APACHE_ODE_1.1/bpel-epr/src/main/java/org/apache/ode/il/OMUtils.java

Modified: ode/branches/APACHE_ODE_1.1/bpel-epr/src/main/java/org/apache/ode/il/OMUtils.java
URL: http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.1/bpel-epr/src/main/java/org/apache/ode/il/OMUtils.java?rev=674673&r1=674672&r2=674673&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.1/bpel-epr/src/main/java/org/apache/ode/il/OMUtils.java (original)
+++ ode/branches/APACHE_ODE_1.1/bpel-epr/src/main/java/org/apache/ode/il/OMUtils.java Mon Jul  7 16:40:42 2008
@@ -159,10 +159,9 @@
             OMNamespace attrOmNs = null;
             String attrNs = attr.getNamespaceURI();
             String attrPrefix = attr.getPrefix();
-            if (attrNs != null)
-                attrOmNs = omElement.findNamespace(attrNs,null);
-            if (attrOmNs == null && attrPrefix != null)
-                attrOmNs = omElement.findNamespace(null, attrPrefix);
+            if (attrNs != null) attrOmNs = omElement.findNamespace(attrNs,null);
+            if (attrOmNs == null && attrPrefix != null) attrOmNs = omElement.findNamespace(null, attrPrefix);
+            if (attrOmNs == null && attrNs != null) attrOmNs = omf.createOMNamespace(attrNs, null);
             omElement.addAttribute(attr.getLocalName(), attr.getValue(), attrOmNs);
         }