axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sam...@apache.org
Subject svn commit: r572897 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
Date Wed, 05 Sep 2007 08:16:58 GMT
Author: samisa
Date: Wed Sep  5 01:16:58 2007
New Revision: 572897

URL: http://svn.apache.org/viewvc?rev=572897&view=rev
Log:
Fixed the minOccures 0 case. Now it does not assume that it has to be there

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

Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl?rev=572897&r1=572896&r2=572897&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
(original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/CADBBeanTemplateSource.xsl
Wed Sep  5 01:16:58 2007
@@ -686,7 +686,10 @@
                                }
                              </xsl:otherwise>
                            </xsl:choose>
-                           if ( current_node != NULL)
+                           
+                           if (current_node <xsl:if test="(@minOccurs=0)"> &amp;&amp;
axiom_node_get_data_element( current_node, env) &amp;&amp; !axis2_strcmp(&quot;<xsl:value-of
select="$propertyName"/>&quot;, 
+                           axiom_element_get_localname(axiom_node_get_data_element( current_node,
env), env))
+                           </xsl:if>)
                            {
                               <xsl:if test="../@ordered or not($anon or $istype)">current_element
= axiom_node_get_data_element( current_node, env);</xsl:if>
                               <!-- changes to following choose tag should be changed in
another 2 places -->



---------------------------------------------------------------------
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