axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dimu...@apache.org
Subject svn commit: r647389 - /webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/c/ServiceXMLTemplate.xsl
Date Sat, 12 Apr 2008 06:47:50 GMT
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


Mime
View raw message