axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r398294 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Date Sun, 30 Apr 2006 07:43:24 GMT
Author: ajith
Date: Sun Apr 30 00:43:22 2006
New Revision: 398294

URL: http://svn.apache.org/viewcvs?rev=398294&view=rev
Log:
Applying Chucks whitespace patch (Issue 632)

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

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl?rev=398294&r1=398293&r2=398294&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
(original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Sun Apr 30 00:43:22 2006
@@ -445,14 +445,6 @@
 
 
 
-
-
-    <!-- start of template for choice/all. Select either for the
-         presence of choice or the absence of ordered
-
-         Note :For now the order in the sequence is not enforced. The
-         following template is used for sequence also
-     -->
      /**
       *  Factory class that keeps the parse method
       */
@@ -578,10 +570,13 @@
                                                     reader.next();
                                                 // Step out of this element
                                                 reader.next();
+                                                // Step to next element event.
+                                                while (!reader.isStartElement() &amp;&amp;
!reader.isEndElement())
+                                                    reader.next();
                                                 if (reader.isEndElement()){
                                                     //two continuous end elements means we
are exiting the xml structure
                                                     <xsl:value-of select="$loopBoolName"/>
= true;
-                                                } else if (reader.isStartElement()){
+                                                } else {
                                                     if (<xsl:value-of select="$propQName"/>.equals(reader.getName())){
                                                         <xsl:value-of select="$listName"/>.add(<xsl:value-of
select="$basePropertyType"/>.Factory.parse(reader));
                                                     }else{
@@ -652,10 +647,13 @@
                                                 }
                                                 // Step out of this element
                                                 reader.next();
+                                                // Step to next element event.
+                                                while (!reader.isStartElement() &amp;&amp;
!reader.isEndElement())
+                                                    reader.next();
                                                 if (reader.isEndElement()){
                                                     //two continuous end elements means we
are exiting the xml structure
                                                     <xsl:value-of select="$loopBoolName"/>
= true;
-                                                }else if (reader.isStartElement()){
+                                                } else {
                                                     if (<xsl:value-of select="$propQName"/>.equals(reader.getName())){
                                                         <xsl:value-of select="$listName"/>.add(getElementTextProperly(reader));
                                                     }else{



Mime
View raw message