Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 16410 invoked from network); 26 Sep 2006 09:19:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 26 Sep 2006 09:19:12 -0000 Received: (qmail 57642 invoked by uid 500); 26 Sep 2006 09:19:11 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 57551 invoked by uid 500); 26 Sep 2006 09:19:11 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 57540 invoked by uid 500); 26 Sep 2006 09:19:11 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 57537 invoked by uid 99); 26 Sep 2006 09:19:11 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Sep 2006 02:19:11 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=deepal@apache.org; spf=permerror X-ASF-Spam-Status: No, hits=-9.4 required=5.0 tests=ALL_TRUSTED,NO_REAL_NAME Received-SPF: error (idunn.apache.osuosl.org: domain apache.org from 140.211.166.113 cause and error) Received: from [140.211.166.113] ([140.211.166.113:57413] helo=eris.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 93/60-06744-F80F8154 for ; Tue, 26 Sep 2006 02:19:11 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id DE3531A981A; Tue, 26 Sep 2006 02:19:08 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r449960 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl Date: Tue, 26 Sep 2006 09:19:08 -0000 To: axis2-cvs@ws.apache.org From: deepal@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20060926091908.DE3531A981A@eris.apache.org> X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Author: deepal Date: Tue Sep 26 02:19:07 2006 New Revision: 449960 URL: http://svn.apache.org/viewvc?view=rev&rev=449960 Log: fixing nil hanling problem for doclitbare 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=449960&r1=449959&r2=449960 ============================================================================== --- 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 Sep 26 02:19:07 2006 @@ -841,6 +841,9 @@ local + + javax.xml.namespace.QName + @@ -914,8 +917,33 @@ } else { xmlWriter.writeStartElement(localName); } - xmlWriter.writeCharacters( - org.apache.axis2.databinding.utils.ConverterUtil.convertToString()); + + if (==null){ + // write the nil attribute + writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","nil","true",xmlWriter); + }else{ + + java.lang.String prefix =""; + java.lang.String namespaceURI =.getNamespaceURI(); + if(namespaceURI !=null){ + prefix = .getPrefix(); + if (prefix == null) { + prefix = org.apache.axis2.databinding.utils.BeanUtil.getUniquePrefix(); + } + xmlWriter.writeNamespace(prefix,namespaceURI ); + xmlWriter.writeCharacters(prefix + ":"+ org.apache.axis2.databinding.utils.ConverterUtil.convertToString()); + } else { + xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString()); + } + + + xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString()); + + } + + + xmlWriter.writeCharacters(org.apache.axis2.databinding.utils.ConverterUtil.convertToString()); + xmlWriter.writeEndElement(); --------------------------------------------------------------------- To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org For additional commands, e-mail: axis-cvs-help@ws.apache.org