You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by aj...@apache.org on 2006/08/25 07:15:30 UTC
svn commit: r436663 -
/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Author: ajith
Date: Thu Aug 24 22:15:30 2006
New Revision: 436663
URL: http://svn.apache.org/viewvc?rev=436663&view=rev
Log:
1. A minor improvement to make codegen work properly for binary. Dims missed this little bit :)
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=436663&r1=436662&r2=436663&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 Thu Aug 24 22:15:30 2006
@@ -1499,7 +1499,7 @@
} // End of if for expected property start element
</xsl:if>
</xsl:if>
- <xsl:if test="$ordered and $min!=0">
+ <xsl:if test="$ordered and $min!=0 and not(@binary)">
else{
// A start element we are not expecting indicates an invalid parameter was passed
throw new java.lang.RuntimeException("Unexpected subelement " + reader.getLocalName());
@@ -2472,7 +2472,7 @@
} // End of if for expected property start element
- <xsl:if test="$ordered and $min!=0">
+ <xsl:if test="$ordered and $min!=0 and not(@binary)">
else{
// A start element we are not expecting indicates an invalid parameter was passed
throw new java.lang.RuntimeException("Unexpected subelement " + reader.getLocalName());
@@ -2489,7 +2489,7 @@
</xsl:if>
<xsl:if test="property[not(@attribute)]"> <!-- this if is needed to skip all this when there are no propoerties-->
- <xsl:if test="$unordered">
+ <xsl:if test="$unordered and property[not(@binary)]">
else{
// A start element we are not expecting indicates an invalid parameter was passed
throw new java.lang.RuntimeException("Unexpected subelement " + reader.getLocalName());
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org
Re: svn commit: r436663 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate.xsl
Posted by Davanum Srinivas <da...@gmail.com>.
thanks!!
On 8/25/06, ajith@apache.org <aj...@apache.org> wrote:
> Author: ajith
> Date: Thu Aug 24 22:15:30 2006
> New Revision: 436663
>
> URL: http://svn.apache.org/viewvc?rev=436663&view=rev
> Log:
> 1. A minor improvement to make codegen work properly for binary. Dims missed this little bit :)
>
> 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=436663&r1=436662&r2=436663&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 Thu Aug 24 22:15:30 2006
> @@ -1499,7 +1499,7 @@
> } // End of if for expected property start element
> </xsl:if>
> </xsl:if>
> - <xsl:if test="$ordered and $min!=0">
> + <xsl:if test="$ordered and $min!=0 and not(@binary)">
> else{
> // A start element we are not expecting indicates an invalid parameter was passed
> throw new java.lang.RuntimeException("Unexpected subelement " + reader.getLocalName());
> @@ -2472,7 +2472,7 @@
>
> } // End of if for expected property start element
>
> - <xsl:if test="$ordered and $min!=0">
> + <xsl:if test="$ordered and $min!=0 and not(@binary)">
> else{
> // A start element we are not expecting indicates an invalid parameter was passed
> throw new java.lang.RuntimeException("Unexpected subelement " + reader.getLocalName());
> @@ -2489,7 +2489,7 @@
> </xsl:if>
>
> <xsl:if test="property[not(@attribute)]"> <!-- this if is needed to skip all this when there are no propoerties-->
> - <xsl:if test="$unordered">
> + <xsl:if test="$unordered and property[not(@binary)]">
> else{
> // A start element we are not expecting indicates an invalid parameter was passed
> throw new java.lang.RuntimeException("Unexpected subelement " + reader.getLocalName());
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-cvs-help@ws.apache.org
>
>
--
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org