title: How to add xsi type value namespace?
body: <p>I'm very new to XSLT, can you please let me know XSLT code to be used to convert below input to below output XML?</p>
  
  <p>This is my input XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="tutorials.xsl"?&gt;
  &lt;n:Envelope xmlns:n="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;n:Header&gt;
    &lt;/n:Header&gt;
     &lt;n:Body xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"&gt;
        &lt;ns1:sayHello xmlns:ns1="http://webservice_product/helloworld"&gt;
           &lt;toWhom&gt;Micky&lt;/toWhom&gt;
           &lt;toMe&gt;123&lt;/toMe&gt;
           &lt;objAs&gt;
              &lt;id&gt;323232&lt;/id&gt;
           &lt;/objAs&gt;
        &lt;/ns1:sayHello&gt;
     &lt;/n:Body&gt;
  &lt;/n:Envelope&gt;
  </code></pre>
  
  <p>This is my desired output XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;?xml-stylesheet type="text/xsl" href="tutorials.xsl"?&gt;
  &lt;n:Envelope xmlns:n="http://schemas.xmlsoap.org/soap/envelope/"&gt;
     &lt;n:Header&gt;
    &lt;/n:Header&gt;
     &lt;n:Body xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"&gt;
        &lt;ns1:sayHello xmlns:ns1="http://webservice_product/helloworld" xsi:type="ns698:Product" xmlns:ns698="urn:objects.prodcuts.com"&gt;
           &lt;toWhom&gt;Micky&lt;/toWhom&gt;
           &lt;toMe&gt;123&lt;/toMe&gt;
           &lt;objAs&gt;
              &lt;id&gt;323232&lt;/id&gt;
           &lt;/objAs&gt;
        &lt;/ns1:sayHello&gt;
     &lt;/n:Body&gt;
  &lt;/n:Envelope&gt;
  </code></pre>
  
  <p>I tried hard to achieve desired output XML, it didn't help me. Moreover Stack Overflow is not allowing me to paste all my XSL code.</p>