Author: amilas
Date: Mon Dec 24 02:16:21 2007
New Revision: 606686

URL: http://svn.apache.org/viewvc?rev=606686&view=rev
Log:
fixed the issue Axis2-3401

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?rev=606686&r1=606685&r2=606686&view=diff
==============================================================================
--- 
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
 Mon Dec 24 02:16:21 2007
@@ -885,6 +885,7 @@
                <xsl:if test="not($extension) or @anon">
                   if (serializeType){
                </xsl:if>
+
                    java.lang.String namespacePrefix = 
registerPrefix(xmlWriter,"<xsl:value-of select="$nsuri"/>");
                    if ((namespacePrefix != null) &amp;&amp; 
(namespacePrefix.trim().length() > 0)){
                        
writeAttribute("xsi","http://www.w3.org/2001/XMLSchema-instance","type";,
@@ -2577,7 +2578,8 @@
 
                    }
                 </xsl:if>
-                <xsl:if test="$isType or $anon or $union">
+                <!-- partical classes can not have any types -->
+                <xsl:if test="(($isType or $anon or $union) and 
not($particleClass))">
                 if 
(reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance","type";)!=null){
                   java.lang.String fullTypeName = 
reader.getAttributeValue("http://www.w3.org/2001/XMLSchema-instance";,
                         "type");



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to