I have next WSDL file
<definitions targetNamespace="http://soft.com/" name="LoggingWebService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://ws.config.softid.softcomputer.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<xsd:schema>
<xsd:import namespace="http://soft.com/" schemaLocation="my.xsd"/>
</xsd:schema>
</types>
<message name="log">
<part name="parameters" element="tns:log"/>
</message>
<message name="getLogs">
<part name="parameters" element="tns:getLogs"/>
</message>
<portType name="LoggingWebService">
<operation name="log">
<input message="tns:log"/>
</operation>
<operation name="getLogs">
<input message="tns:getLogs"/>
<output message="tns:getLogsResponse"/>
</operation>
</portType>
</definitions>
I want transform this file using javax.transformation
to another file, where messages
will be ordered by alphabet (using string in 'name').
<definitions targetNamespace="http://soft.com/" name="LoggingWebService" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://ws.config.softid.softcomputer.com/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<xsd:schema>
<xsd:import namespace="http://soft.com/" schemaLocation="my.xsd"/>
</xsd:schema>
</types>
<message name="getLogs">
<part name="parameters" element="tns:getLogs"/>
</message>
<message name="log">
<part name="parameters" element="tns:log"/>
</message>
<portType name="LoggingWebService">
<operation name="getLogs">
<input message="tns:getLogs"/>
<output message="tns:getLogsResponse"/>
</operation>
<operation name="log">
<input message="tns:log"/>
</operation>
</portType>
</definitions>
What XSLT file I need for this? Help me plz
This stylesheet will also work on the files in your previous question.
output