ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lman...@apache.org
Subject svn commit: r356313 - /webservices/commons/trunk/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java
Date Mon, 12 Dec 2005 18:09:21 GMT
Author: lmandel
Date: Mon Dec 12 10:09:11 2005
New Revision: 356313

URL: http://svn.apache.org/viewcvs?rev=356313&view=rev
Log:
Fixed problem when the derivation is specified as an empty string.

Modified:
    webservices/commons/trunk/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java

Modified: webservices/commons/trunk/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java
URL: http://svn.apache.org/viewcvs/webservices/commons/trunk/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java?rev=356313&r1=356312&r2=356313&view=diff
==============================================================================
--- webservices/commons/trunk/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java
(original)
+++ webservices/commons/trunk/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java
Mon Dec 12 10:09:11 2005
@@ -1836,7 +1836,7 @@
     //according to w3c spec have to be "#all"
     //but in .net the valid enum value is "all".
     XmlSchemaDerivationMethod getDerivation(Element el, String attrName) {
-        if (el.hasAttribute(attrName)) {
+        if (el.hasAttribute(attrName) && !el.getAttribute(attrName).equals("")) {
             //#all | List of (extension | restriction | substitution
             String derivationMethod = el.getAttribute(attrName).trim();
             char c = Character.toUpperCase(derivationMethod.charAt(0));



Mime
View raw message