title: Modification in XML using XSLT
body: <p>I want to get an output xml from a given xml using xslt.The output xml will have some elements to be added in the the given xml.But I am not getting the required output.</p>
  
  <p>I have an input xml like:</p>
  
  <pre><code>  &lt;Response xmlns="http://xyz.abc/max/"  xmlns:ns1="http://xyz.abc/max/"&gt;
      &lt;out xmlns=""&gt;
          &lt;Number xmlns="http://xyz.abc/max/"&gt;Desc1&lt;/Number&gt;
          &lt;Address xmlns="http://xyz.abc/max"&gt;Desc2&lt;/Address&gt;
          &lt;Records xmlns="http://xyz.abc/max"&gt;Desc3&lt;/Records&gt;
      &lt;/out&gt;
  &lt;/Response&gt;
  </code></pre>
  
  <p>I want an output xml like:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;abc:Reqeust xmlns:abc="http://www.nnn.com/bnm"
  xmlns:ns1="http://xyz.abc/max/" xmlns="http://xyz.abc/max/" &gt;
      &lt;abc:Tray&gt;
          &lt;abc:Remote&gt;
              &lt;abc:ID&gt;ID1&lt;/abc:ID&gt;
              &lt;abc:Distance&gt;Always&lt;/abc:Distance&gt;
          &lt;/abc:Remote&gt;
          &lt;abc:Time&gt;
              1100-01-01T01:01:01+05:30
          &lt;/abc:Time&gt;
          &lt;abc:AreaMap /&gt;
      &lt;/abc:Tray&gt;
      &lt;abc:Area&gt;
          &lt;abc:Get&gt;
              &lt;abc:Fault&gt;Token1&lt;/abc:Fault&gt;
          &lt;/abc:Get&gt;
          &lt;Response xmlns="http://xyz.abc/max/"  xmlns:ns1="http://xyz.abc/max/"&gt;
              &lt;out xmlns=""&gt;
                  &lt;Number xmlns="http://xyz.abc/max/"&gt;Desc1&lt;/Number&gt;
                  &lt;Address xmlns="http://xyz.abc/max"&gt;Desc2&lt;/Address&gt;
                  &lt;Records xmlns="http://xyz.abc/max"&gt;Desc3&lt;/Records&gt;
              &lt;/out&gt;
          &lt;/Response&gt;
      &lt;/abc:Area&gt;
  &lt;/abc:Reqeust&gt;
  </code></pre>
  
  <p>I am using the xslt:</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:abc="http://www.nnn.com/bnm"
  xmlns:ns1="http://xyz.abc/max/" xmlns="http://xyz.abc/max/" &gt;
      &lt;xsl:template match="@*|node()"&gt;
          &lt;xsl:copy&gt;
              &lt;xsl:apply-templates select="@*|node()"/&gt;
          &lt;/xsl:copy&gt;
      &lt;/xsl:template&gt;
      &lt;xsl:template match="Response"&gt;
          &lt;abc:Request&gt;
              &lt;abc:Tray&gt;
                  &lt;abc:Remote&gt;
                      &lt;abc:ID&gt;ID1&lt;/abc:ID&gt;
                      &lt;abc:Distance&gt;Always&lt;/abc:Distance&gt;
                  &lt;/abc:Remote&gt;
                  &lt;abc:Time&gt;
                      1100-01-01T01:01:01+05:30
                  &lt;/abc:Time&gt;
                  &lt;abc:AreaMap /&gt;
              &lt;/abc:Tray&gt;
              &lt;abc:Area&gt;
                  &lt;abc:Get&gt;
                      &lt;abc:Fault&gt;Token1&lt;/abc:Fault&gt;
                  &lt;/abc:Get&gt;
                  &lt;Response&gt;
                      &lt;xsl:apply-templates select="@*|node()"/&gt;
                  &lt;/Response&gt;
              &lt;/abc:Area&gt;
          &lt;/abc:Request&gt;
      &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  
  <p>but I am not getting the required output.
  What changes should I make in the xslt to get the required output xml?</p>