title: xml transformation using xslt 2.0
body: <p>I'm trying to do SOAP to XML transformation in XSLT 2.0, this is the source xml:</p>
  
  <pre><code>    &lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xi="http://www.xcdm.com"&gt;
  &lt;soapenv:Header/&gt;
  &lt;soapenv:Body&gt;
      &lt;xi:root&gt;
          &lt;xmlHeader&gt;
              &lt;timestamp&gt;1232135468&lt;/timestamp&gt;
              &lt;source&gt;xds unit&lt;/source&gt;
          &lt;/xmlHeader&gt;
          &lt;xmlBody&gt;
              &lt;method&gt;create&lt;/method&gt;
              &lt;customer&gt;
                  &lt;custA&gt;VOC-Prov&lt;/custA&gt;
                  &lt;custB&gt;vocprov&lt;/custB&gt;
              &lt;/customer&gt;
              &lt;Item&gt;
                  &lt;subElmt1&gt;12345&lt;/subElmt1&gt;
                  &lt;subElmt2&gt;534321&lt;/subElmt2&gt;
              &lt;/Item&gt;
          &lt;/xmlBody&gt;
      &lt;/xi:root&gt;
  &lt;/soapenv:Body&gt;
  </code></pre>
  
  <p>`</p>
  
  <p>I have been looking for days for a way to transform the structure using XSLT 2.0 so that the output will structured by this one :</p>
  
  <pre><code>    &lt;customer version="1.0"&gt;
      &lt;custA&gt;VOC-Prov&lt;/custA&gt;
      &lt;custB&gt;vocprov&lt;/custB&gt;
          &lt;Item name="constName" method="value from the  method element (create)"&gt;
          &lt;Attribute name="subElmt1"&gt;value of subElmt1 element&lt;/Attribute&gt;
          &lt;Attribute name="subElmt2"&gt;534321&lt;/Attribute&gt;
      &lt;/Item&gt;
  &lt;/customer&gt;
  </code></pre>
  
  <ol>
  <li>How can i Concat the method value as attribute in the requested xml result ?</li>
  <li>What is the best way to implement xslt that convert element to attribute     that match this xml hirarchiel  ?</li>
  </ol>
  
  <p>Any help on this would be greatly appreciated! </p>