You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by lm...@apache.org on 2005/12/12 19:09:21 UTC
svn commit: r356313 -
/webservices/commons/trunk/XmlSchema/src/org/apache/ws/commons/schema/SchemaBuilder.java
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));