Author: mriou
Date: Tue Aug 12 08:05:43 2008
New Revision: 685175
URL: http://svn.apache.org/viewvc?rev=685175&view=rev
Log:
ODE-352 Type attribute replaces xsi-type attribute value
Modified:
ode/branches/APACHE_ODE_1.X/bpel-epr/src/main/java/org/apache/ode/il/OMUtils.java
Modified:
ode/branches/APACHE_ODE_1.X/bpel-epr/src/main/java/org/apache/ode/il/OMUtils.java
URL:
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/bpel-epr/src/main/java/org/apache/ode/il/OMUtils.java?rev=685175&r1=685174&r2=685175&view=diff
==============================================================================
---
ode/branches/APACHE_ODE_1.X/bpel-epr/src/main/java/org/apache/ode/il/OMUtils.java
(original)
+++
ode/branches/APACHE_ODE_1.X/bpel-epr/src/main/java/org/apache/ode/il/OMUtils.java
Tue Aug 12 08:05:43 2008
@@ -88,7 +88,7 @@
else newAttr = doc.createAttributeNS(null,attr.getLocalName());
newAttr.appendChild(doc.createTextNode(attr.getAttributeValue()));
- domElement.setAttributeNode(newAttr);
+ domElement.setAttributeNodeNS(newAttr);
// Case of qualified attribute values, we're forced to add
corresponding namespace declaration manually...
int colonIdx = attr.getAttributeValue().indexOf(":");
@@ -168,9 +168,10 @@
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 (attrOmNs == null && attrNs != null) attrOmNs =
omf.createOMNamespace(attrNs, null);
+ if (attrNs != null)
+ attrOmNs = omElement.findNamespace(attrNs,null);
+ if (attrOmNs == null && attrPrefix != null)
+ attrOmNs = omElement.findNamespace(null, attrPrefix);
omElement.addAttribute(attr.getLocalName(), attr.getValue(),
attrOmNs);
}