You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by sa...@apache.org on 2007/08/30 06:48:16 UTC

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

Author: samisa
Date: Wed Aug 29 21:48:15 2007
New Revision: 571037

URL: http://svn.apache.org/viewvc?rev=571037&view=rev
Log:
Fixed problem in coding special characters. AXIS2C-674

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=571037&r1=571036&r2=571037&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 Aug 29 21:48:15 2007
@@ -1316,6 +1316,7 @@
                 <xsl:choose>
                     <xsl:when test="not(@type) or (@ours='yes' and (@type='uri' or @type='qname' or @type='date_time' or @type='base64_binary' or @type='char')) or @type='char' or @type='axis2_char_t*' or @type='axutil_base64_binary_t*' or @type='axutil_date_time_t*' or @type='axiom_node_t*' or @type='axutil_uri_t*' or @type='axutil_qname_t*'">
                     axis2_char_t *text_value_<xsl:value-of select="$position"/>;
+                    axis2_char_t *text_value_<xsl:value-of select="$position"/>_temp;
                     </xsl:when>
                     <xsl:otherwise>
                     axis2_char_t text_value_<xsl:value-of select="$position"/>[64];
@@ -1787,7 +1788,17 @@
                         <xsl:when test="$nativePropertyType='axis2_char_t*'">
                            text_value_<xsl:value-of select="$position"/> = <xsl:value-of select="$attriName"/>;
                            axutil_stream_write(stream, env, start_input_str, start_input_str_len);
-                           axutil_stream_write(stream, env, text_value_<xsl:value-of select="$position"/>, axutil_strlen(text_value_<xsl:value-of select="$position"/>));
+                            
+                           text_value_<xsl:value-of select="$position"/>_temp = axutil_xml_quote_string(env, text_value_<xsl:value-of select="$position"/>, AXIS2_TRUE);
+                           if (text_value_2_temp)
+                           {
+                               axutil_stream_write(stream, env, text_value_<xsl:value-of select="$position"/>_temp, axutil_strlen(text_value_<xsl:value-of select="$position"/>_temp));
+                               AXIS2_FREE(env->allocator, text_value_<xsl:value-of select="$position"/>_temp);
+                           }
+                           else
+                           {
+                               axutil_stream_write(stream, env, text_value_<xsl:value-of select="$position"/>, axutil_strlen(text_value_<xsl:value-of select="$position"/>));
+                           }
                            axutil_stream_write(stream, env, end_input_str, end_input_str_len);
                         </xsl:when>
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org