Author: keith
Date: Fri Dec 14 01:38:46 2007
New Revision: 11120
Log:
Introducing a new variable to hold original service name cause its needed to
retrieve data for processing
Modified:
trunk/commons/dynamic-codegen/src/jsstub.xslt
Modified: trunk/commons/dynamic-codegen/src/jsstub.xslt
==============================================================================
--- trunk/commons/dynamic-codegen/src/jsstub.xslt (original)
+++ trunk/commons/dynamic-codegen/src/jsstub.xslt Fri Dec 14 01:38:46 2007
@@ -12,10 +12,14 @@
<xsl:template match="service">
<xsl:variable name="service-name">
- <xsl:call-template name="xml-name-to-javascript-name">
- <xsl:with-param name="name" select="@name"/>
- </xsl:call-template>
- </xsl:variable>
+ <xsl:call-template name="xml-name-to-javascript-name">
+ <xsl:with-param name="name" select="@name"/>
+ </xsl:call-template>
+ </xsl:variable>
+
+ <xsl:variable name="original-service-name">
+ <xsl:value-of select="@name"/>
+ </xsl:variable>
// Example stubs for <xsl:value-of select="$service-name"/> operations. This
function is not intended
// to be called, but rather as a source for copy-and-paste development.
@@ -38,7 +42,7 @@
</xsl:for-each>}
stubs.visible = false;
-var <xsl:value-of select="$service-name"/> = new WebService("<xsl:for-each
select="/services/[EMAIL PROTECTED]">
+var <xsl:value-of select="$service-name"/> = new WebService("<xsl:for-each
select="/services/[EMAIL PROTECTED]">
<xsl:sort select="@type = 'SOAP12'" order="descending"/>
<xsl:sort select="@type = 'SOAP11'" order="descending"/>
<xsl:sort select="@address" order="ascending"/>
@@ -163,7 +167,7 @@
}
this._endpointDetails =
- {<xsl:for-each select="/services/[EMAIL PROTECTED]">
+ {<xsl:for-each select="/services/[EMAIL PROTECTED]">
<xsl:sort select="@type = 'SOAP12'" order="descending"/>
<xsl:sort select="@type = 'SOAP11'" order="descending"/>
<xsl:sort select="@address" order="ascending"/>
_______________________________________________
Commons-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/commons-dev