Author: jonathan Date: Mon Mar 10 13:37:43 2008 New Revision: 14663 Log:
code simplification Modified: trunk/commons/dynamic-codegen/src/wsdl2sig.xslt Modified: trunk/commons/dynamic-codegen/src/wsdl2sig.xslt ============================================================================== --- trunk/commons/dynamic-codegen/src/wsdl2sig.xslt (original) +++ trunk/commons/dynamic-codegen/src/wsdl2sig.xslt Mon Mar 10 13:37:43 2008 @@ -602,7 +602,7 @@ <xsl:with-param name="qname" select="@type"/> </xsl:call-template> </xsl:variable> - <xsl:variable name="typeNamespace"><xsl:value-of select="namespace::*[local-name() = substring-before($typeLocalName,':')]"/></xsl:variable> + <xsl:variable name="typeNamespace"><xsl:value-of select="namespace::*[local-name() = $typePrefix]"/></xsl:variable> <xsl:if test="@type"> <xsl:attribute name="type"><xsl:value-of select="$typeLocalName"/></xsl:attribute> <xsl:attribute name="type-namespace"><xsl:value-of select="$typeNamespace"/></xsl:attribute> _______________________________________________ Commons-dev mailing list Commons-dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/commons-dev