axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thil...@apache.org
Subject svn commit: r452349 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Date Tue, 03 Oct 2006 08:35:44 GMT
Author: thilina
Date: Tue Oct  3 01:35:43 2006
New Revision: 452349

URL: http://svn.apache.org/viewvc?view=rev&rev=452349
Log:
fixing http://issues.apache.org/jira/browse/AXIS2-1138

Modified:
    webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl

Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl?view=diff&rev=452349&r1=452348&r2=452349
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Tue Oct  3 01:35:43 2006
@@ -976,10 +976,15 @@
           */
           private void writeAttribute(java.lang.String namespace,java.lang.String attName,
                                       java.lang.String attValue,javax.xml.stream.XMLStreamWriter
xmlWriter) throws javax.xml.stream.XMLStreamException{
-
-           registerPrefix(xmlWriter, namespace);
-
-            xmlWriter.writeAttribute(namespace,attName,attValue);
+    	  	  if (namespace.equals(""))
+        	  {
+        		  xmlWriter.writeAttribute(attName,attValue);
+        	  }
+        	  else
+        	  {
+                  registerPrefix(xmlWriter, namespace);
+                  xmlWriter.writeAttribute(namespace,attName,attValue);
+              }
           }
 
          /**
@@ -2247,9 +2252,15 @@
           private void writeAttribute(java.lang.String namespace,java.lang.String attName,
                                       java.lang.String attValue,javax.xml.stream.XMLStreamWriter
xmlWriter) throws javax.xml.stream.XMLStreamException{
 
-           registerPrefix(xmlWriter, namespace);
-
-            xmlWriter.writeAttribute(namespace,attName,attValue);
+    	  	  if (namespace.equals(""))
+        	  {
+        		  xmlWriter.writeAttribute(attName,attValue);
+        	  }
+        	  else
+        	  {
+                  registerPrefix(xmlWriter, namespace);
+                  xmlWriter.writeAttribute(namespace,attName,attValue);
+              }
           }
 
          /**



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message