1 <?xml version="1.0" encoding="ISO-8859-1"?>
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
5 xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
6 xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
8 <xsl:output method="html" />
10 <!-- to locate the out message -->
11 <xsl:key name="messages" match="wsdl:message" use="@name"/>
13 <xsl:template match="wsdl:definitions">
15 <head> <title> <xsl:value-of select="./@name" /> </title> </head>
17 <table border='1'><tr><th>method</th><th>in</th><th>out</th></tr>
18 <xsl:apply-templates mode="messages" />
24 <xsl:template match="wsdl:message" mode="messages">
25 <xsl:variable name="methodname" select="substring-before(@name,'_in')" />
26 <xsl:variable name="outmessage" select="concat($methodname,'_out')" />
27 <xsl:if test="contains(@name,'_in')">
30 <xsl:value-of select="$methodname" />
33 <xsl:for-each select="wsdl:part">
34 <xsl:value-of select="@name" />
35 (<xsl:value-of select="@type" />)
36 <xsl:text> </xsl:text>
40 <xsl:value-of select="key('messages',$outmessage)/wsdl:part/@type" />