xml transform using XSLT, order by alphabet in inner node <p>I have next WSDL file</p> <pre><code> &lt;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/"&gt; &lt;types&gt; &lt;xsd:schema&gt; &lt;xsd:import namespace="http://soft.com/" schemaLocation="my.xsd"/&gt; &lt;/xsd:schema&gt; &lt;/types&gt; &lt;message name="log"&gt; &lt;part name="parameters" element="tns:log"/&gt; &lt;/message&gt; &lt;message name="getLogs"&gt; &lt;part name="parameters" element="tns:getLogs"/&gt; &lt;/message&gt; &lt;portType name="LoggingWebService"&gt; &lt;operation name="log"&gt; &lt;input message="tns:log"/&gt; &lt;/operation&gt; &lt;operation name="getLogs"&gt; &lt;input message="tns:getLogs"/&gt; &lt;output message="tns:getLogsResponse"/&gt; &lt;/operation&gt; &lt;/portType&gt; &lt;/definitions&gt; </code></pre> <p>I want transform this file using <code>javax.transformation</code> to another file, where <code>messages</code> will be ordered by alphabet (using string in 'name'). </p> <pre><code>&lt;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/"&gt; &lt;types&gt; &lt;xsd:schema&gt; &lt;xsd:import namespace="http://soft.com/" schemaLocation="my.xsd"/&gt; &lt;/xsd:schema&gt; &lt;/types&gt; &lt;message name="getLogs"&gt; &lt;part name="parameters" element="tns:getLogs"/&gt; &lt;/message&gt; &lt;message name="log"&gt; &lt;part name="parameters" element="tns:log"/&gt; &lt;/message&gt; &lt;portType name="LoggingWebService"&gt; &lt;operation name="getLogs"&gt; &lt;input message="tns:getLogs"/&gt; &lt;output message="tns:getLogsResponse"/&gt; &lt;/operation&gt; &lt;operation name="log"&gt; &lt;input message="tns:log"/&gt; &lt;/operation&gt; &lt;/portType&gt; &lt;/definitions&gt; </code></pre> <p>What XSLT file I need for this? Help me plz</p>