Author: dkulp
Date: Wed Oct 13 18:33:07 2010
New Revision: 1022226
URL: http://svn.apache.org/viewvc?rev=1022226&view=rev
Log:
Merged revisions 998751 via svnmerge from
https://svn.apache.org/repos/asf/webservices/commons/branches/modules/XmlSchema/1_4_X_BRANCH
........
r998751 | dkulp | 2010-09-19 19:21:22 -0400 (Sun, 19 Sep 2010) | 2 lines
Add the reserved prefixs. Fixes the Woden tests.
........
Modified:
webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/utils/NodeNamespaceContext.java
Modified:
webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/utils/NodeNamespaceContext.java
URL:
http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/utils/NodeNamespaceContext.java?rev=1022226&r1=1022225&r2=1022226&view=diff
==============================================================================
---
webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/utils/NodeNamespaceContext.java
(original)
+++
webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/utils/NodeNamespaceContext.java
Wed Oct 13 18:33:07 2010
@@ -87,6 +87,11 @@ public final class NodeNamespaceContext
public static String getNamespaceURI(Element el, String pfx) {
+ if ("xml".equals(pfx)) {
+ return "http://www.w3.org/XML/1998/namespace";
+ } else if ("xmlns".equals(pfx)) {
+ return "http://www.w3.org/2000/xmlns/";
+ }
if (DOM_LEVEL_3) {
return getNamespaceURIDomLevel3(el, pfx);
}