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 di...@apache.org on 2008/04/12 08:47:50 UTC

svn commit: r647389 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceXMLTemplate.xsl

Author: dimuthu
Date: Fri Apr 11 23:47:49 2008
New Revision: 647389

URL: http://svn.apache.org/viewvc?rev=647389&view=rev
Log:
Correcting the generating service name for invalid characters

Modified:
    webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceXMLTemplate.xsl

Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceXMLTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceXMLTemplate.xsl?rev=647389&r1=647388&r2=647389&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceXMLTemplate.xsl (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceXMLTemplate.xsl Fri Apr 11 23:47:49 2008
@@ -27,12 +27,15 @@
     </xsl:template>
 
     <xsl:template match="interface">
+        <xsl:variable name="servicename">
+            <xsl:value-of select="translate(@servicename,':.-','___')"/>
+        </xsl:variable>
 
         <service>
-            <xsl:attribute name="name"><xsl:value-of select="@servicename"/></xsl:attribute>
+            <xsl:attribute name="name"><xsl:value-of select="$servicename"/></xsl:attribute>
 
             <parameter name="ServiceClass">
-                        <xsl:value-of select="@servicename"/>
+                        <xsl:value-of select="$servicename"/>
             </parameter>
             <description>
               <xsl:value-of select="@servicename"/> Service



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