You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by di...@apache.org on 2008/11/17 17:59:11 UTC

svn commit: r718276 - /webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/XmlSchemaSerializer.java

Author: dims
Date: Mon Nov 17 08:59:11 2008
New Revision: 718276

URL: http://svn.apache.org/viewvc?rev=718276&view=rev
Log:
port fix in 1.4 branch 718274 to trunk

Modified:
    webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/XmlSchemaSerializer.java

Modified: webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/XmlSchemaSerializer.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/XmlSchemaSerializer.java?rev=718276&r1=718275&r2=718276&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/XmlSchemaSerializer.java (original)
+++ webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/XmlSchemaSerializer.java Mon Nov 17 08:59:11 2008
@@ -2376,9 +2376,11 @@
 
         if (anyAttributeObj.processContent != null) {
             String processContent = anyAttributeObj.processContent.getValue();
-            processContent = convertString(processContent);
-            anyAttribute.setAttribute("processContents",
+            if(!Constants.BlockConstants.NONE.equals(processContent)){
+                processContent = convertString(processContent);
+                anyAttribute.setAttribute("processContents",
                     processContent);
+            }
         }
         if (anyAttributeObj.annotation != null) {
             Element annotation = serializeAnnotation(doc,