Author: jonathan
Date: Wed Jan 9 21:12:14 2008
New Revision: 12090
Log:
Removed code that could result in empty type attributes.
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 Wed Jan 9 21:12:14 2008
@@ -611,13 +611,14 @@
<!-- Not in a built-in type, do some more inference -->
<xsl:otherwise>
<xsl:if test="@type">
- <xsl:attribute name="type"><xsl:value-of
select="substring-after(@type,':')"/></xsl:attribute>
- <xsl:attribute name="type-namespace"><xsl:value-of
select="namespace::*[local-name() =
-
substring-before(current()/@type,':')]"/></xsl:attribute>
- </xsl:if>
- <xsl:if test="@name">
- <xsl:attribute name="type"></xsl:attribute>
+ <xsl:attribute name="type">
+ <xsl:call-template name="local-name">
+ <xsl:with-param name="qname"
select="@type"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:attribute name="type-namespace"><xsl:value-of
select="namespace::*[local-name() =
substring-before(current()/@type,':')]"/></xsl:attribute>
</xsl:if>
+
<!-- this-type-def will either point to the named type
(if there is a @type) or to the child type (if there is a @name) -->
<xsl:variable name="this-type-def" select="[EMAIL
PROTECTED](current()/@type,':')] | xs:simpleType | xs:complexType"/>
<xsl:attribute name="simple">
_______________________________________________
Commons-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/commons-dev